diff --git a/org.ntlab.sampleAnalyzer/log.csv b/org.ntlab.sampleAnalyzer/log.csv index 0720c7a..e2600a8 100644 --- a/org.ntlab.sampleAnalyzer/log.csv +++ b/org.ntlab.sampleAnalyzer/log.csv @@ -1,4 +1,4 @@ -!SESSION 2018-09-23 20:24:04.098 ----------------------------------------------- +!SESSION 2018-09-25 12:48:51.296 ----------------------------------------------- eclipse.buildId=4.4.2.M20150204-1700 java.version=1.8.0_144 java.vendor=Oracle Corporation @@ -6,7 +6,7 @@ Framework arguments: -product org.eclipse.platform.ide Command-line arguments: -product org.eclipse.platform.ide -data C:\Users\student\workspace/../runtime-EclipseApplication -dev file:C:/Users/student/workspace/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/dev.properties -os win32 -ws win32 -arch x86_64 -consoleLog -!ENTRY org.eclipse.egit.ui 2 0 2018-09-23 20:24:19.999 +!ENTRY org.eclipse.egit.ui 2 0 2018-09-25 12:49:12.415 !MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level Git settings which might be configured in ${gitPrefix}/etc/gitconfig under the native Git installation directory. The most important of these settings is core.autocrlf. Git for Windows by default sets this parameter to true in @@ -14,7 +14,7 @@ Team > Git > Configuration preference page's 'System Settings' tab. This warning can be switched off on the Team > Git > Confirmations and Warnings preference page. -!ENTRY org.eclipse.egit.ui 2 0 2018-09-23 20:24:19.999 +!ENTRY org.eclipse.egit.ui 2 0 2018-09-25 12:49:12.415 !MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git user global configuration and to define the default location to store repositories: 'C:\Users\student'. If this is not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and @@ -28,34 +28,12 @@ classpath[2] = C:\Users\student\Downloads\eclipse-rcp-luna-SR2-win32-x86_64\eclipse\..\..\..\git\org.ntlab.traceCollector\org.ntlab.traceCollector\javassist.jar classpath[3] = C:\Users\student\Downloads\eclipse-rcp-luna-SR2-win32-x86_64\eclipse\..\..\..\git\org.ntlab.reverseDebugger\org.ntlab.reverseDebugger\bin\ classpath[4] = C:\Users\student\Downloads\eclipse-rcp-luna-SR2-win32-x86_64\eclipse\..\..\..\git\org.ntlab.sampleAnalyzer\org.ntlab.sampleAnalyzer\bin\ -Main (4):org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget@95948b3 -threadId = "1" +Main (4):org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget@adabe38SampleAnalyzer OK! targetSignature: public B Main.getB() - -ReverseDebugger: -Exp (RD),61777150 -Exp (RD),47194816 -Exp (RD),35802909 -Exp (RD),35074187 -Exp (RD),34106242 -Exp (RD),34384940 -Exp (RD),32375626 -Exp (RD),35873965 -Exp (RD),23921503 -Exp (RD),31448736 - -TraceCollector: -Exp (TC),29287834 -Exp (TC),3447021 -Exp (TC),3445441 -Exp (TC),3312804 -Exp (TC),3368069 -Exp (TC),3969679 -Exp (TC),3604134 -Exp (TC),3625451 -Exp (TC),3912835 -Exp (TC),3789671 - -Main (4):org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget@95948b3SampleAnalyzer OK! +Exp (Target),45171289 +Main (4):org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget@adabe38SampleAnalyzer OK! targetSignature: public B Main.getB() -Exp (Target),17767237 +Exp (Target),2762511 +Main (4):org.eclipse.jdt.internal.debug.core.model.JDIDebugTarget@adabe38SampleAnalyzer OK! +targetSignature: public B Main.getB() +Exp (Target),2548553 diff --git a/org.ntlab.sampleAnalyzer/src/org/ntlab/onlineAccessor/JDIDebuggingVirtualMachine.java b/org.ntlab.sampleAnalyzer/src/org/ntlab/onlineAccessor/JDIDebuggingVirtualMachine.java index a94fd82..6786e5f 100644 --- a/org.ntlab.sampleAnalyzer/src/org/ntlab/onlineAccessor/JDIDebuggingVirtualMachine.java +++ b/org.ntlab.sampleAnalyzer/src/org/ntlab/onlineAccessor/JDIDebuggingVirtualMachine.java @@ -9,7 +9,7 @@ public class JDIDebuggingVirtualMachine { - public static VirtualMachine getDebuggineVirtualMachine() + public static VirtualMachine getDebuggingVirtualMachine() throws NotExecutedException, NotSuspendedException, NotDebuggedException { LaunchManager lm = (LaunchManager)DebugPlugin.getDefault().getLaunchManager(); ILaunch[] launches = lm.getLaunches(); diff --git a/org.ntlab.sampleAnalyzer/src/org/ntlab/sampleanalyzer/SampleAnalyzeAction.java b/org.ntlab.sampleAnalyzer/src/org/ntlab/sampleanalyzer/SampleAnalyzeAction.java index e475b41..297cda6 100644 --- a/org.ntlab.sampleAnalyzer/src/org/ntlab/sampleanalyzer/SampleAnalyzeAction.java +++ b/org.ntlab.sampleAnalyzer/src/org/ntlab/sampleanalyzer/SampleAnalyzeAction.java @@ -30,7 +30,7 @@ @Override public void run(IAction arg0) { try { - VirtualMachine vm = JDIDebuggingVirtualMachine.getDebuggineVirtualMachine(); + VirtualMachine vm = JDIDebuggingVirtualMachine.getDebuggingVirtualMachine(); List allThreads = vm.allThreads(); for (int i = 0; i < allThreads.size(); i++) { ThreadReference thread = allThreads.get(i); @@ -103,11 +103,11 @@ String lineSeparator = System.lineSeparator(); String title = "Sample Analyze Result"; result.append(title); result.append(lineSeparator); - result.append("(execution in " + type.getTypeName() + ")"); result.append(lineSeparator); + result.append("(executed within " + type.getTypeName() + ")"); result.append(lineSeparator); result.append(System.lineSeparator()); result.append("signature: " + targetSignature); result.append(lineSeparator); result.append("count: " + count); result.append(lineSeparator); - result.append("time:" + executionTime); result.append(lineSeparator); + result.append("time: " + executionTime + " nsec"); result.append(lineSeparator); MessageDialog.openInformation(null, title, result.toString()); } @@ -134,7 +134,7 @@ IntegerValue index = vm.mirrorOf(i); ObjectReference methodExecution = (ObjectReference)mc.changeReceiver(methodExecutions).callInstanceMethod("get", index); String signature = ((StringReference)mc.changeReceiver(methodExecution).callInstanceMethod("getSignature")).value(); - System.out.println(indent + signature); +// System.out.println(indent + signature); if (targetSignature.equals(signature)) { count++; } @@ -150,9 +150,9 @@ public String getTypeName() { switch (this) { case ANALYZER: - return "Analyzer"; + return "analyzer"; case TARGET: - return "Target"; + return "target"; default: return ""; }