Skip to content
This repository was archived by the owner on Mar 11, 2019. It is now read-only.

Commit 5672cd9

Browse files
committed
fix(cli): minor changes on help text
fix(cli): change executable script name
1 parent e39a530 commit 5672cd9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

powerapi-cli/build.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ mappings in Universal ++= {
3333
}
3434

3535
scriptClasspath ++= Seq("../conf", "../scripts")
36+
37+
NativePackagerKeys.executableScriptName := "powerapi"

powerapi-cli/src/main/scala/org/powerapi/app/Application.scala

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ object PowerAPI extends App {
5353
@volatile var monitors = Seq[PowerMonitoring]()
5454

5555
val shutdownHookThread = scala.sys.ShutdownHookThread {
56-
println("It's the time for sleeping! ...")
57-
5856
monitors.foreach(monitor => monitor.cancel())
5957
monitors = Seq()
6058
powerMeters.foreach(powerMeter => powerMeter.shutdown())
@@ -125,13 +123,13 @@ object PowerAPI extends App {
125123
|
126124
|Build a software-defined power meter. Do not forget to configure correctly the modules (see the documentation).
127125
|
128-
|usage: ./powerapi-cli modules [cpu-simple|cpu-dvfs|libpfm-core|libpfm-core-proces|powerspy, ...]
129-
| monitor --frequency [ms] --targets [pid, ..., app, ...)|all] --agg [max|min|geomean|logsum|mean|median|stdev|sum|variance] --[console,file [filepath],chart]
130-
| duration [s]
126+
|usage: ./powerapi modules [cpu-simple|cpu-dvfs|libpfm-core|libpfm-core-proces|powerspy, ...] \
127+
| monitor --frequency [ms] --targets [pid, ..., app, ...)|all] --agg [max|min|geomean|logsum|mean|median|stdev|sum|variance] --[console,file [filepath],chart] \
128+
| duration [s]
131129
|
132-
|example: ./powerapi-cli modules cpu-simple monitor --frequency 1000 --targets firefox --agg max --console monitor --targets chrome --agg max --console
133-
| modules powerspy monitor --frequency 1000 --targets all --agg max --console
134-
| duration 30
130+
|example: ./powerapi modules cpu-simple monitor --frequency 1000 --targets firefox --agg max --console monitor --targets chrome --agg max --console \
131+
| modules powerspy monitor --frequency 1000 --targets all --agg max --console \
132+
| duration 30
135133
""".stripMargin
136134

137135
println(str)

0 commit comments

Comments
 (0)