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
5c19e5b9
Commit
5c19e5b9
authored
Feb 18, 2019
by
Amine El Messaoudi
Committed by
GitHub
Feb 18, 2019
Browse files
Options
Downloads
Patches
Plain Diff
Update ptaskTracer.sh
parent
8eadc374
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ptaskTracer.sh
+12
-3
12 additions, 3 deletions
ptaskTracer.sh
with
12 additions
and
3 deletions
ptaskTracer.sh
+
12
−
3
View file @
5c19e5b9
...
...
@@ -24,8 +24,8 @@ while [[ $# -gt 0 ]]; do
;;
-a
|
--args
)
ARGS
=
"
$2
"
shift
# past argument
shift
# past value
shift
shift
;;
-p
|
--path
)
APPPATH
=
"
$2
"
...
...
@@ -100,7 +100,7 @@ if [[ "$HELP" = true ]]; then # showing help
echo
""
echo
"With option --old no tracing is performed, the trace analysed will be build/[APP_NAME]_raw.txt"
echo
"These parameters are optional :"
echo
"<-a|--args ARGS> arguments to the program"
echo
"<-a|--args ARGS>
to specify
arguments to the program"
echo
"<-o|--output OUTPUT> to specify directory where all output in build/ is generated"
echo
"<-i|--input INPUT> to specify directory of old build/[APP_NAME]_raw.txt"
echo
"<-t|--time TRACING_TIME> for tracing time in second, must be unsigned double (default: 4s)"
...
...
@@ -129,6 +129,9 @@ if [[ -n "$OLD" ]]; then # svg option
if
[[
-n
"
$TIME
"
]]
;
then
echo
"[warning] argument
${
TIME
}
not needed with --old option"
fi
if
[[
-n
"
$ARG
"
]]
;
then
echo
"[warning] argument
${
ARG
}
not needed with --old option"
fi
if
[[
-n
"
$IN
"
]]
;
then
if
!
[[
-d
"
$IN
"
]]
;
then
echo
"Bad -i --input argument, must be directory, type ptaskTracer --help for help"
...
...
@@ -156,6 +159,12 @@ else # no svg option
echo
"Using current directory"
APPPATH
=
"."
fi
if
[[
-n
"
$ARG
"
]]
;
then
if
!
[[
-f
"
$ARG
"
]]
;
then
echo
"Bad -a --args argument, must be file, type ptaskTracer --help for help"
exit
1
fi
fi
if
[[
-n
"
$TIME
"
]]
;
then
if
!
[[
$TIME
=
~ ^[0-9]+
([
.][0-9]+
)
?
$
]]
;
then
echo
"Bad -t --time argument, must be unsigned double, type ptaskTracer --help for help"
...
...
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