Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 200963

Summary: Time values decreased for method during pause/resume
Product: z_Archived Reporter: Alan Haggarty <haggarty>
Component: TPTPAssignee: Jonathan West <jgwest>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: jkubasta
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460

Description Alan Haggarty CLA 2007-08-23 12:13:04 EDT
Build ID: I20070625-1500

Steps To Reproduce:
1. profile HeapTest monitoring execution time analysis
with show execution statistics selected
2. press enter once
3. pause the agent
4. refresh the method statistics and note the times for 
methodB
5. resume the agent, press enter in the console
6. reset the statisics view - notice methodB times
are now much smaller. methodB hasn't been called 
again while the agent is monitoring.


More information:
In once test on windows XP with the 4.4.0.2 release 
I got the times.

Base      Avg Base  Cumulative Calls
0.013089  0.013089  0.013556     1
0.000022  0.000022  0.000037     1

for below the pause and after process termination for methodB

HeapTest is a test program from the profiler automated test framework.
/org.eclipse.tptp.ac.testautomation/automation-files/external_classes/HeapTest.java

it executes its methods in the order:
methodA
methodB
<pause>
methodA
methodB
<resume>
methodA

This doesn't happen for execution flow configured.
Comment 1 Jonathan West CLA 2007-10-18 00:01:56 EDT
Hey Alan, do you recall if this was WinXP on EM64T?
Comment 2 Alan Haggarty CLA 2007-10-18 09:20:56 EDT
Pretty sure it was XP. Our EM64T test host is W2K3. Wouldn't be suprised if it reproduced everywhere though. I am sure I saw it on Vista or EM64T in the last pass.
Comment 3 Jonathan West CLA 2007-11-21 14:21:16 EST
Confirmed with 4.4.0.3, IBM Java 1.5 and Windows XP.
Comment 4 Jonathan West CLA 2007-11-21 15:25:42 EST
I'm unable to reproduce the bug with the second 4.5 candidate build driver (TPTP-4.5.0-200711050917) on the same machine and with the same version of Java, and also unable to reproduce on a Vista machine. The defect seems to have been fixed indirectly by another patch after 4.4.0.3 was released.

Comment 5 Paul Slauenwhite CLA 2007-12-19 07:59:13 EST
Please change the target to the 4.5 iteration when this Bugzilla was resolved.
Comment 6 Paul Slauenwhite CLA 2009-06-30 12:09:42 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.