Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Khouzam2012-12-13 14:08:03 -0500
committerMatthew Khouzam2012-12-13 14:08:03 -0500
commit26a427dad709ff4b1622a11cb5b2cc8f323ffbc7 (patch)
tree924b685ebd7fad854f38fbf136f4d6f288d58283
parent157cef69555134fbfd18d381d7d4d97d7987abbf (diff)
downloadorg.eclipse.linuxtools-lttng-kepler.tar.gz
org.eclipse.linuxtools-lttng-kepler.tar.xz
org.eclipse.linuxtools-lttng-kepler.zip
Cpu usagelttng-kepler
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/cpu/CPUUsage.java39
1 files changed, 22 insertions, 17 deletions
diff --git a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/cpu/CPUUsage.java b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/cpu/CPUUsage.java
index 076e140c1a..92e559a41e 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/cpu/CPUUsage.java
+++ b/lttng/org.eclipse.linuxtools.lttng2.kernel.ui/src/org/eclipse/linuxtools/internal/lttng2/kernel/ui/views/cpu/CPUUsage.java
@@ -511,9 +511,6 @@ public class CPUUsage extends TmfView {
return data;
}
- /**
- * @return
- */
private List<Integer> getPids() {
List<Integer> children = new ArrayList<Integer>();
try {
@@ -526,15 +523,14 @@ public class CPUUsage extends TmfView {
}
class Process implements Comparable<Process> {
- /*
- * (non-Javadoc)
- *
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return procName + ":" + pid; //$NON-NLS-1$
- }
+
+
+ private final int pidQuark;
+ private final String procName;
+ private final int pid;
+ private final double execTime;
+ private final double execTimeArray[];
+
/**
* @return the procName
@@ -550,6 +546,9 @@ public class CPUUsage extends TmfView {
return pid;
}
+ /**
+ * @return the executionTimeArray
+ */
public double[] getExecTimeArray() {
return execTimeArray;
}
@@ -580,11 +579,6 @@ public class CPUUsage extends TmfView {
execTime = acc;
}
- final int pidQuark;
- final String procName;
- final int pid;
- final double execTime;
- final double execTimeArray[];
@Override
public int compareTo(Process o) {
@@ -597,5 +591,16 @@ public class CPUUsage extends TmfView {
return 0;
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see java.lang.Object#toString()
+ */
+ @Override
+ public String toString() {
+ return procName + ":" + pid; //$NON-NLS-1$
+ }
+
+
}
}

Back to the top