Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ptaskTracer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Forget Julien
ptaskTracer
Commits
c996c19f
Commit
c996c19f
authored
6 years ago
by
ael-mess
Browse files
Options
Downloads
Patches
Plain Diff
permission fix
parent
338b210e
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+6
-6
6 additions, 6 deletions
README.md
src/com/main.java
+0
-1
0 additions, 1 deletion
src/com/main.java
src/com/parser/traceLexer.g4
+1
-1
1 addition, 1 deletion
src/com/parser/traceLexer.g4
src/com/printer/svggen.java
+2
-1
2 additions, 1 deletion
src/com/printer/svggen.java
with
9 additions
and
9 deletions
README.md
+
6
−
6
View file @
c996c19f
...
...
@@ -30,15 +30,15 @@ ptaskTracer is a tool that traces the execution of periodic and aperiodic tasks
To install Lttng 2.10, download ANTLR4 4.7.2, Batik 1.10 and w3c jar lib libraries, compile and install the tool, run (from the repository ):
```
shell
$
./install.sh
$
sudo
./install.sh
```
On Ubuntu systems, add stable 2.10 PPA repository before :
```
shell
$
apt-add-repository ppa:lttng/stable-2.10
$
apt-get update
$
./install.sh
$
sudo
apt-add-repository ppa:lttng/stable-2.10
$
sudo
apt-get update
$
sudo
./install.sh
```
Make sure
<code>
lttng-tools
</code>
,
<code>
lttng-modules
</code>
, and
<code>
liblttng-ust
</code>
are installed before running the application.
...
...
@@ -54,13 +54,13 @@ $ sudo lttng-sessiond --daemonize
Start the application :
```
shell
$
ptaskTracer
-f
|--file
[
APP_NAME] <
-p
|--path APP_PATH> <
-t
|--time TRACING_TIME> <
-s
|--scale PRINT_SCALE> <
-h
|--theight TASK_HEIGTH> <
-os
|--osapp> <
-g
|--group> <
-o
|--output OUTPUT>
$
sudo
ptaskTracer
-f
|--file
[
APP_NAME] <
-p
|--path APP_PATH> <
-t
|--time TRACING_TIME> <
-s
|--scale PRINT_SCALE> <
-h
|--theight TASK_HEIGTH> <
-os
|--osapp> <
-g
|--group> <
-o
|--output OUTPUT>
```
or
```
shell
$
ptaskTracer
--old
-f
|--file
[
APP_NAME] <
-s
|--scale PRINT_SCALE> <
-h
|--theight TASK_HEIGTH> <
-os
|--osapp> <
-g
|--group> <
-i
|--input INPUT>
$
sudo
ptaskTracer
--old
-f
|--file
[
APP_NAME] <
-s
|--scale PRINT_SCALE> <
-h
|--theight TASK_HEIGTH> <
-os
|--osapp> <
-g
|--group> <
-i
|--input INPUT>
```
With the option
<code>
--old
</code>
, no tracing is performed, the trace analysed will be
<code>
INPUT/build/[APP_NAME]_raw.txt
</code>
...
...
This diff is collapsed.
Click to expand it.
src/com/main.java
+
0
−
1
View file @
c996c19f
...
...
@@ -31,7 +31,6 @@ public class main {
//System.out.println(parser.description());
//System.out.println(tasks.description());
//tasks.check();
}
else
throw
new
IllegalArgumentException
(
"Bad arguments or number of arguments"
);
}
...
...
This diff is collapsed.
Click to expand it.
src/com/parser/traceLexer.g4
+
1
−
1
View file @
c996c19f
...
...
@@ -52,7 +52,7 @@ DELTA : ([0-9]'.'[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])|'?.?
INT : [0-9]+;
SINT : '-'[0-9]+;
HEX : '0x'[0-9A-F]+;
ID : QUOT[A-Za-z0-9/:.)( _-]+QUOT;
ID : QUOT[A-Za-z0-9/:.)(
~
_-]+QUOT;
HOSTNAME : [A-Za-z0-9-]+;
WS : [ \t\r\n]+ -> skip;
This diff is collapsed.
Click to expand it.
src/com/printer/svggen.java
+
2
−
1
View file @
c996c19f
...
...
@@ -205,7 +205,8 @@ public class svggen {
int
period
=
0
,
deadline
=
0
;
Double
start
=
null
;
if
(!
this
.
percpu
)
{
this
.
curH
=
1
+
os
.
size
();
if
(
this
.
osactive
)
this
.
curH
=
1
+
os
.
size
();
else
this
.
curH
=
2
;
for
(
Integer
id
:
this
.
cpu
)
{
this
.
f
.
line
(
this
.
curH
*
this
.
task_hei
,
this
.
width
);
for
(
task
t
:
this
.
tasks
)
if
(
t
.
getCpu_id
().
equals
(
id
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment