Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 195574 - [enh] Add a "wait" message when the workbench attaches/detaches from the JVMTI Profiler
Summary: [enh] Add a "wait" message when the workbench attaches/detaches from the JVMT...
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: jkubasta CLA
QA Contact:
URL:
Whiteboard: housecleaned460 closed460
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-05 14:54 EDT by Asaf Yaffe CLA
Modified: 2016-05-05 10:59 EDT (History)
4 users (show)

See Also:


Attachments
Proposed implementation (10.74 KB, patch)
2007-07-09 04:59 EDT, Ruslan Scherbakov CLA
no flags Details | Diff
Updated patch (9.01 KB, patch)
2007-07-10 00:07 EDT, Ruslan Scherbakov CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Asaf Yaffe CLA 2007-07-05 14:54:38 EDT
This enhancement is required to streamline the user experience once bug 190802 and bug 179354 are resolved. After resolving these bugs, the "attach" operation may take 2-3 minutes on large applications (such as the Eclipse workbench), during which the profiled application will be frozen. It is therefore advisable to have a visual indication to the user that a work is in progress and that the system is not actually frozen.
Comment 1 Eugene Chan CLA 2007-07-05 15:09:27 EDT
The attach process should then be launch as a job so user can monitor the job in the Progress view and given a chance to cancel the job if necessary.
Comment 2 Ruslan Scherbakov CLA 2007-07-09 04:59:15 EDT
Created attachment 73298 [details]
Proposed implementation

Attach process implemented as standard workbench job.
Comment 3 Ruslan Scherbakov CLA 2007-07-09 05:06:38 EDT
Eugene,

Thank you for suggestion. The attached was wrapped into standard scheduled job processing: the attach progress indication is shown in bottom right position on status bar of workbench. The message is: "Attaching to the JVMTI agent".

Can you please review the proposed patch?
Comment 4 Eugene Chan CLA 2007-07-09 12:54:32 EDT
Ruslan, The patch looks good to me. However, there is new string (PII) change in the patch and it cannot be included for 4.4.0.1 point release. 

Guru, 4.4.0.1 cannot introduce any new PII string, would you please update the target to a release that accepts PII changes? or as a workaound, Ruslan, please try to reuse string that already exists.
Comment 5 Ruslan Scherbakov CLA 2007-07-10 00:07:37 EDT
Created attachment 73406 [details]
Updated patch

Reusing TIMessages.TASK_CONNECTING_TO_AGENT string (Connecting to the JVMTI agent) which actually has been used in similar conditions in TI launch code.
Comment 6 Ruslan Scherbakov CLA 2007-07-10 00:11:26 EDT
Eugene,

Please review the last patch.
Comment 7 Eugene Chan CLA 2007-07-10 01:11:22 EDT
The latest patch looks good . Thanks!
Comment 8 Ruslan Scherbakov CLA 2007-07-11 00:20:56 EDT
The patch checked into CVS. No new strings were created.
Comment 9 Asaf Yaffe CLA 2007-08-14 09:25:09 EDT
During testing of my fixes to bug 190802 and bug 179354 I found that the implementation of this feature does not work correctly. 

When the user attaches, the workbench instantly switches the monitor status from "paused" to "active" regardless of the time it takes for the "attach" operation to be performed on the runtime side. I think this is related to the asynchronous nature of the Agent Controller commands interface. The call to the attach/run command of the execution framework probably returns instantly, even when the processing of this command on the runtime side was not yet completed.

Maybe we need to use a different approach:
After sending the "run" command to the Agent Controller, wait for a "attach completed" notification from the runtime, and only then update the status of the monitor in the UI.

Re-opening this defect. 
Comment 10 Guru Nagarajan CLA 2007-08-15 13:34:49 EDT
Ruslan is not available for the changes. 
Alexander - roll this work into the Auto-attach work you are currently focusing on.
Comment 11 Kathy Chan CLA 2009-02-23 13:41:08 EST
Mass update of P1 enhancements and defects targetted to future to P2.
Comment 12 Paul Slauenwhite CLA 2009-06-30 06:37:58 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As such, TPTP is not delivering enhancements. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement is resolved as WONTFIX. For this enhancement to be considered, please re-open with an attached patch including the Description Document (see http://www.eclipse.org/tptp/home/documents/process/development/description_documents.html), code (see http://www.eclipse.org/tptp/home/documents/resources/TPTPDevGuide.htm), and test cases (see http://www.eclipse.org/tptp/home/documents/process/TPTP_Testing_Strategy.html).
Comment 13 Paul Slauenwhite CLA 2009-06-30 06:38:28 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As such, TPTP is not delivering enhancements. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement is resolved as WONTFIX. For this enhancement to be considered, please re-open with an attached patch including the Description Document (see http://www.eclipse.org/tptp/home/documents/process/development/description_documents.html), code (see http://www.eclipse.org/tptp/home/documents/resources/TPTPDevGuide.htm), and test cases (see http://www.eclipse.org/tptp/home/documents/process/TPTP_Testing_Strategy.html).
Comment 14 Paul Slauenwhite CLA 2009-06-30 13:28:14 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.