This repository has been archived by the owner on Mar 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Fuse reporter
Loïc Huertas edited this page Nov 4, 2015
·
6 revisions
You can use this reporter by using the given actor: FuseReporter
.
For more information about Fuse, see this [page] (http://fuse.sourceforge.net/).
For using this reporter with the API:
val cpu_simple = new PowerMeter(actorRefFactory, Seq(ProcFSCpuSimpleModule())) // module creation
val fuse = actorRefFactory.actorOf(Props(classOf[FuseReporter], cpu_simple)) // actor creation
- The mounting path of the virtual file system
- Default value :
./test
powerapi.fuse.filename = "/PowerAPI/fuse"
In these exemples, the current directory is the mounting path of the virtual file system.
To see all monitored processes :
ls -al ./energy/
To start monitoring of the 123 process:
mkdir ./energy/123
To see the power consumption of the 123 process
cat ./energy/123/power
To see the energy consumption of the 123 process
cat ./energy/123/energy
To stop monitoring of the 123 process:
rmdir ./energy/123