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

Commit

Permalink
fix(cli): minor changes on help text
Browse files Browse the repository at this point in the history
  • Loading branch information
huertas committed Mar 10, 2015
1 parent e39a530 commit 207394e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions powerapi-cli/src/main/scala/org/powerapi/app/Application.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ object PowerAPI extends App {
@volatile var monitors = Seq[PowerMonitoring]()

val shutdownHookThread = scala.sys.ShutdownHookThread {
println("It's the time for sleeping! ...")

monitors.foreach(monitor => monitor.cancel())
monitors = Seq()
powerMeters.foreach(powerMeter => powerMeter.shutdown())
Expand Down Expand Up @@ -125,13 +123,13 @@ object PowerAPI extends App {
|
|Build a software-defined power meter. Do not forget to configure correctly the modules (see the documentation).
|
|usage: ./powerapi-cli modules [cpu-simple|cpu-dvfs|libpfm-core|libpfm-core-proces|powerspy, ...]
| monitor --frequency [ms] --targets [pid, ..., app, ...)|all] --agg [max|min|geomean|logsum|mean|median|stdev|sum|variance] --[console,file [filepath],chart]
| duration [s]
|usage: ./powerapi modules [cpu-simple|cpu-dvfs|libpfm-core|libpfm-core-proces|powerspy, ...] \
| monitor --frequency [ms] --targets [(pid, ..., app, ...)|all] --agg [max|min|geomean|logsum|mean|median|stdev|sum|variance] --[console,file [filepath],chart] \
| duration [s]
|
|example: ./powerapi-cli modules cpu-simple monitor --frequency 1000 --targets firefox --agg max --console monitor --targets chrome --agg max --console
| modules powerspy monitor --frequency 1000 --targets all --agg max --console
| duration 30
|example: ./powerapi modules cpu-simple monitor --frequency 1000 --targets firefox --agg max --console monitor --targets chrome --agg max --console \
| modules powerspy monitor --frequency 1000 --targets all --agg max --console \
| duration 30
""".stripMargin

println(str)
Expand Down

0 comments on commit 207394e

Please sign in to comment.