Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 284362 - Profiling data is not refreshed in "Memory Statistics" view
Summary: Profiling data is not refreshed in "Memory Statistics" view
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Eugene Chan CLA
QA Contact: Kathy Chan CLA
URL:
Whiteboard: closed472
Keywords:
: 288187 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-22 23:59 EDT by Chengrui Deng CLA
Modified: 2016-05-05 11:00 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chengrui Deng CLA 2009-07-22 23:59:34 EDT
Build ID: M20090211-1700

Steps To Reproduce:
Using test case PerformanceExample in TPTP test suites.
1. Profile Configuration: Select "Memory Analysis" with "Track object allocation sites" option checked. In Java Profiling Options, uncheck "Automatically determine filtering criteria" option and add java.awt.* INCLUDE, PerformanceExample INCLUDE into filter list.
2. Start profiling and open "Object Allocation" view.
3. You can see two "Button" objects are allocated bot in "Memory Statistics" and "Allocation Details" (They are Add and Remove buttons in PerformanceExample App).
4. Click "Add" in PerformanceExample and Refresh profiling session in Eclipse workbench. You will find that three Button objects shown in "Allocation Details" while only old two of them are shown in "Memory Statistics" view.


More information:
This bug is found when I investigate bug 282952. The problem can be reproduced with TPTP-4.5.2.1-200907211032 build on WindowsXP.
Comment 1 Eugene Chan CLA 2009-07-23 10:43:26 EDT
The Object Allocation tab is not hooked with the refreshed button I believe. If you switch to the memory statistic tab and double click the object to open the detail in allocation tab should workaround the problem for now.
Comment 2 Chengrui Deng CLA 2009-07-23 21:23:01 EDT
(In reply to comment #1)
> The Object Allocation tab is not hooked with the refreshed button I believe. If
> you switch to the memory statistic tab and double click the object to open the
> detail in allocation tab should workaround the problem for now.
> 

Yes. If navigate from memory statistic tab to allocation details tab by double click, the correct information is shown in allocation details view. It seems the objects info is only updated in allocation details view.
Comment 3 Eugene Chan CLA 2009-09-14 11:50:35 EDT
*** Bug 288187 has been marked as a duplicate of this bug. ***
Comment 4 Kathy Chan CLA 2009-09-14 13:16:04 EDT
Re-targeting to TPTP 4.6.2.
Comment 5 Eugene Chan CLA 2009-12-18 16:33:33 EST
The memory statistics is refreshed upon clicking on the Refresh view button in Profiling monitor view and I cannot reproduce the problem. I double checked the code and the update in BaseMemoryStatisticView is called upon Refresh event is fired.

Thread [main] (Suspended (breakpoint at line 376 in BaseMemoryStatisticView))	
	BaseMemoryStatisticView.update() line: 376	
	MemoryAnalysisPage.refreshPage() line: 47	
	MemoryAnalysisViewer(TraceViewer).refreshPage(Object) line: 428	
	MemoryAnalysisViewer(TraceViewer).handleProfileEvent(ProfileEvent) line: 579	
	TraceUIManager$1.run() line: 168	
	UISynchronizer(Synchronizer).syncExec(Runnable) line: 179	
	UISynchronizer.syncExec(Runnable) line: 150	
	Display.syncExec(Runnable) line: 4329	
	TraceUIManager.notifyProfileEventListener(ProfileEvent) line: 161	
	UIPlugin.notifyProfileEventListener(ProfileEvent) line: 602	
	ResourceItemControlProvider$1RefreshView.run() line: 129	
	ResourceItemControlProvider$1RefreshView(Action).runWithEvent(Event) line: 498	
	ActionContributionItem.handleWidgetSelection(Event, boolean) line: 584	
	ActionContributionItem.access$2(ActionContributionItem, Event, boolean) line: 501	
	ActionContributionItem$6.handleEvent(Event) line: 452	
	EventTable.sendEvent(Event) line: 84
Comment 6 Kathy Chan CLA 2011-02-11 13:35:11 EST
This defect had been resolved as WORKSFORME for more than 1 month.  Closing this on the reporter's behalf.  Please verify with the latest TPTP 4.7.2 driver and re-open if this is still a problem.  TPTP 4.7.2 driver can be downloaded from:

http://www.eclipse.org/tptp/home/downloads/?ver=4.7.2
Comment 7 Kathy Chan CLA 2011-02-11 13:57:47 EST
Closing in TPTP 4.7.2 release.