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

Bug 167609

Summary: Enhance Thread Statistics View
Product: z_Archived Reporter: Guru Nagarajan <guru.nagarajan>
Component: TPTPAssignee: Guru Nagarajan <guru.nagarajan>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: asaf.yaffe, ewchan, ruslan.scherbakov, slavescu, vitaly.a.provodin
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
URL: http://www.eclipse.org/tptp/groups/Architecture/documents/features/hf_167609.htm
Whiteboard: closed460
Bug Depends on: 170207    
Bug Blocks:    
Attachments:
Description Flags
Thread Analysis Enhancements for TPTP 4.4 presentation
none
Thread Analysis Enhancements doc - use cases and design of views
none
Initial impl of enhanced thread views
none
Thread views impl
none
Patch created by Eclipse-CVS
none
Patch with latest changes + icons
none
The same patch without icons
none
Archived icons attached
none
patch 200702280000 - accumulated changes
none
binary icons for previous patch 200702280000
none
3 Mar patch - latest changes none

Description Guru Nagarajan CLA 2006-12-12 07:25:55 EST
The Thread Statistics View currently reports Thread states. Apart from knowing the thread states the user also needs to know the Thread stack. This enh involves changes in the UI, Model and the runtime.
Comment 1 Guru Nagarajan CLA 2006-12-19 17:11:19 EST
CHanging component to Trace.UI
Comment 2 Guru Nagarajan CLA 2007-01-12 18:47:33 EST
JVMTI 4.4 ENh
Comment 3 Marius Slavescu CLA 2007-01-26 11:30:51 EST
I recommend this to be converted to an enhancement and we should use separate bug reports for the actually implementation.
Comment 4 Ruslan Scherbakov CLA 2007-01-30 05:41:11 EST
Created attachment 57785 [details]
Thread Analysis Enhancements for TPTP 4.4 presentation
Comment 5 Ruslan Scherbakov CLA 2007-01-30 05:42:21 EST
cc added
Comment 6 Ruslan Scherbakov CLA 2007-01-30 05:43:45 EST
Created attachment 57787 [details]
Thread Analysis Enhancements doc - use cases and design of views
Comment 7 Guru Nagarajan CLA 2007-02-02 12:12:53 EST
Deferred to i2.
Comment 8 Ruslan Scherbakov CLA 2007-02-09 13:31:16 EST
Created attachment 58675 [details]
Initial impl of enhanced thread views
Comment 9 Guru Nagarajan CLA 2007-02-09 17:44:24 EST
Ruslan can you create a Patch and attach to the bugzilla. This will make it easier for Eugene to apply and commit.
Comment 10 Ruslan Scherbakov CLA 2007-02-12 02:56:10 EST
Created attachment 58754 [details]
Thread views impl
Comment 11 Eugene Chan CLA 2007-02-12 14:00:25 EST
(In reply to comment #10)
> Created an attachment (id=58754) [details]
> Thread views impl
> 

Ruslan, this is not a valid patch format. 
Please refer to the following link on how to create a patch file from your workspace:
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-68c.htm
Comment 12 Ruslan Scherbakov CLA 2007-02-13 01:54:04 EST
Created attachment 58831 [details]
Patch created by Eclipse-CVS

Options used:
Diff output: Unified
Patch root: project

previously I used wincvs/cygwin,
now I switched source control to Eclipse-CVS
Comment 13 Eugene Chan CLA 2007-02-13 15:51:24 EST
Patch submitted, and updated copyrights' year range to 2007.

However, I notice the follow issues in the patched code.
- Call stack and Thread States in action set do not contain any icon file.
- There are two Trace association with Execution Time analysis. Please see Windows > Preferences > Profiling and Logging > Trace Association 
Comment 14 Guru Nagarajan CLA 2007-02-13 15:53:34 EST
Thanks Eugene. 
Comment 15 Ruslan Scherbakov CLA 2007-02-14 08:18:46 EST
Created attachment 58964 [details]
Patch with latest changes + icons
Comment 16 Ruslan Scherbakov CLA 2007-02-14 08:20:14 EST
Created attachment 58965 [details]
The same patch without icons
Comment 17 Ruslan Scherbakov CLA 2007-02-14 08:30:39 EST
Created attachment 58966 [details]
Archived icons attached

The patch with binary files (icons) may fail to apply so I have additionaly attached icons for views action.

Note, these ones are initial variants of icons. I do not have appropriate image editor in order to set transparent index. These icons can be edited and replaced in the future.
Comment 18 Eugene Chan CLA 2007-02-14 12:06:38 EST
Ruslan, I see the following problem after applying the patches. 

1. TASK_CONNECTING_TO_AGENT is missing in NLS message (show in progress view)
2. Icons are of white background, please use the grey tone as in other icons.
3. Following error is thrown when launch with TI.

org.eclipse.tptp.platform.execution.exceptions.TimeoutException: Launching Process command timed out.
	at org.eclipse.tptp.platform.execution.client.core.internal.AgentController.queryAgentByProcessID(AgentController.java:470)
	at org.eclipse.tptp.platform.execution.client.core.internal.AgentController.getAgent(AgentController.java:837)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper.locateTIAgent(TIDelegateHelper.java:517)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper.attachToAgent(TIDelegateHelper.java:418)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper.attachToAgent(TIDelegateHelper.java:386)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper.access$0(TIDelegateHelper.java:384)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper$2.processLaunched(TIDelegateHelper.java:298)
	at org.eclipse.tptp.platform.execution.client.core.internal.ProcessImpl$ProcessCommandHandler.processStarted(ProcessImpl.java:896)
	at org.eclipse.tptp.platform.execution.client.core.internal.ProcessImpl$ProcessCommandHandler.incomingCommand(ProcessImpl.java:843)
	at org.eclipse.tptp.platform.execution.client.core.internal.ConnectionImpl.handleACCommands(ConnectionImpl.java:244)
	at org.eclipse.tptp.platform.execution.client.core.internal.ConnectionImpl.access$4(ConnectionImpl.java:233)
	at org.eclipse.tptp.platform.execution.client.core.internal.ConnectionImpl$1.incomingCommand(ConnectionImpl.java:169)
	at org.eclipse.tptp.platform.execution.client.core.internal.ConnectionImpl.processControlMessage(ConnectionImpl.java:670)
	at org.eclipse.tptp.platform.execution.client.core.internal.ConnectionImpl$SocketReaderThread.run(ConnectionImpl.java:773)
java.lang.NullPointerException
	at org.eclipse.tptp.platform.execution.client.core.internal.AgentController.queryAgentByProcessID(AgentController.java:484)
	at org.eclipse.tptp.platform.execution.client.core.internal.AgentController.getAgent(AgentController.java:837)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper.locateTIAgent(TIDelegateHelper.java:517)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper.attachToAgent(TIDelegateHelper.java:418)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper.attachToAgent(TIDelegateHelper.java:386)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper.access$0(TIDelegateHelper.java:384)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper$2.processLaunched(TIDelegateHelper.java:298)
	at org.eclipse.tptp.platform.execution.client.core.internal.ProcessImpl$ProcessCommandHandler.processStarted(ProcessImpl.java:896)
	at org.eclipse.tptp.platform.execution.client.core.internal.ProcessImpl$ProcessCommandHandler.incomingCommand(ProcessImpl.java:843)
	at org.eclipse.tptp.platform.execution.client.core.internal.ConnectionImpl.handleACCommands(ConnectionImpl.java:244)
	at org.eclipse.tptp.platform.execution.client.core.internal.ConnectionImpl.access$4(ConnectionImpl.java:233)
	at org.eclipse.tptp.platform.execution.client.core.internal.ConnectionImpl$1.incomingCommand(ConnectionImpl.java:169)
	at org.eclipse.tptp.platform.execution.client.core.internal.ConnectionImpl.processControlMessage(ConnectionImpl.java:670)
	at org.eclipse.tptp.platform.execution.client.core.internal.ConnectionImpl$SocketReaderThread.run(ConnectionImpl.java:773)

Patches checked in.
Comment 19 Guru Nagarajan CLA 2007-02-14 12:10:57 EST
Eugene, The stack trace you see is due to a patch commited by a the AC team. I have just fixed that on my machine and will check in the fix. 

Thanks again
Comment 20 Ruslan Scherbakov CLA 2007-02-27 13:12:40 EST
Created attachment 59900 [details]
patch 200702280000 - accumulated changes
Comment 21 Ruslan Scherbakov CLA 2007-02-27 13:13:59 EST
Created attachment 59901 [details]
binary icons for previous patch 200702280000
Comment 22 Eugene Chan CLA 2007-02-27 13:45:27 EST
patch attached in comment #20 and #21 are checked in with modification in copyright (year) statement of some classes.
Comment 23 Ruslan Scherbakov CLA 2007-03-01 12:44:14 EST
Created attachment 60096 [details]
3 Mar patch - latest changes

Eugene, please apply this patch to CVS
Comment 24 Eugene Chan CLA 2007-03-01 12:58:00 EST
(In reply to comment #23)
> Created an attachment (id=60096) [details]
> 3 Mar patch - latest changes
> 
> Eugene, please apply this patch to CVS
> 

Patch submitted.
Comment 25 Guru Nagarajan CLA 2007-03-02 12:51:21 EST
Ruslan - this enhancement is considered complete. For additional issues - lets open a bugzilla and track them
Comment 26 Paul Slauenwhite CLA 2009-06-30 14:14:23 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.