A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
New: MSG_host_get_pstate() and smpi_get_host_pstate()
[simgrid.git]
/
src
/
bindings
/
java
/
org
/
simgrid
/
surf
/
Cpu.java
diff --git
a/src/bindings/java/org/simgrid/surf/Cpu.java
b/src/bindings/java/org/simgrid/surf/Cpu.java
index
3ddad07
..
0fec4c4
100644
(file)
--- a/
src/bindings/java/org/simgrid/surf/Cpu.java
+++ b/
src/bindings/java/org/simgrid/surf/Cpu.java
@@
-162,6
+162,10
@@
public class Cpu extends Resource {
SurfJNI.Cpu_setPstate(swigCPtr, this, pstate_index);
}
+ public int getPstate() {
+ return SurfJNI.Cpu_getPstate(swigCPtr, this);
+ }
+
/**
* @param state The new state of the cpu