[jboss-cvs] JBoss Profiler SVN: r473 - branches/JBossProfiler2/src/main/org/jboss/profiler/agent.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Aug 23 07:06:45 EDT 2008
Author: jesper.pedersen
Date: 2008-08-23 07:06:45 -0400 (Sat, 23 Aug 2008)
New Revision: 473
Modified:
branches/JBossProfiler2/src/main/org/jboss/profiler/agent/ProfilerThread.java
branches/JBossProfiler2/src/main/org/jboss/profiler/agent/ProfilerThreadImpl.java
Log:
Remove unused unwind method
Modified: branches/JBossProfiler2/src/main/org/jboss/profiler/agent/ProfilerThread.java
===================================================================
--- branches/JBossProfiler2/src/main/org/jboss/profiler/agent/ProfilerThread.java 2008-08-23 11:06:13 UTC (rev 472)
+++ branches/JBossProfiler2/src/main/org/jboss/profiler/agent/ProfilerThread.java 2008-08-23 11:06:45 UTC (rev 473)
@@ -56,14 +56,6 @@
public void endWait(String className, String methodName);
/**
- * Unwind exception
- * @param className The class name
- * @param methodName The method name
- * @param exception The exception
- */
- public void unwind(String className, String methodName, String exception);
-
- /**
* Class allocation
* @param className The class being allocated
*/
Modified: branches/JBossProfiler2/src/main/org/jboss/profiler/agent/ProfilerThreadImpl.java
===================================================================
--- branches/JBossProfiler2/src/main/org/jboss/profiler/agent/ProfilerThreadImpl.java 2008-08-23 11:06:13 UTC (rev 472)
+++ branches/JBossProfiler2/src/main/org/jboss/profiler/agent/ProfilerThreadImpl.java 2008-08-23 11:06:45 UTC (rev 473)
@@ -105,8 +105,6 @@
* @param methodName The method name
*/
public void start(String className, String methodName) {
- long start = System.nanoTime();
-
if (!Agent.isEnabled() || !Agent.isCPU() || !Profiler.isRunning()) {
return;
}
@@ -129,7 +127,6 @@
activeFrame = fi;
- fi.setOverhead(System.nanoTime() - start);
fi.setBeginTime(System.nanoTime());
}
@@ -182,8 +179,6 @@
* @param methodName The method name
*/
public void beginWait(String className, String methodName) {
- long start = System.nanoTime();
-
if (!Agent.isEnabled() || !Agent.isCPU() || !Profiler.isRunning()) {
return;
}
@@ -194,7 +189,6 @@
return;
}
- fi.setOverhead(System.nanoTime() - start);
fi.setBeginWaitTime(System.nanoTime());
}
@@ -221,26 +215,6 @@
}
/**
- * Unwind exception
- * @param className The class name
- * @param methodName The method name
- * @param exception The exception
- */
- public void unwind(String className, String methodName, String exception) {
- if (!Agent.isEnabled() || !Agent.isCPU() || !Profiler.isRunning()) {
- return;
- }
-
- FrameInfo fi = findFrame(className, methodName);
-
- if (fi == null) {
- return;
- }
-
- activeFrame = fi;
- }
-
- /**
* Class allocation
* @param className The class being allocated
*/
More information about the jboss-cvs-commits
mailing list