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

Bug 174029

Summary: [activity] fix task activity timing discrepancies
Product: z_Archived Reporter: Robert Elves <robert.elves>
Component: MylynAssignee: Robert Elves <robert.elves>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
mylar/context/zip
none
mylar/context/zip none

Description Robert Elves CLA 2007-02-13 12:25:07 EST
Under some circumstances task activity times appear to be incorrect.
Comment 1 Robert Elves CLA 2007-02-15 13:05:38 EST
Timing appears to work throughout the day but upon startup times are off. This indicates that parsing of the activity meta context has a serious bug.
Comment 2 Mik Kersten CLA 2007-02-20 11:51:20 EST
I'm starting to get the suspicion that the problem is a result of the computer going into sleep.  How are we currently detecting that?  It seems that to avoid problems with sleep/hibernate/crash this needs to be "heartbeat" based, i.e., if the user activity monitor does not issue a heartbeat, time should not have elapsed.
Comment 3 Robert Elves CLA 2007-03-29 16:49:05 EDT
Fixed multiple problems related to task timing. Leaving open as I still have some refactoring I'd like to do under this report.
Comment 4 Robert Elves CLA 2007-03-30 12:02:46 EDT
Scheduling additional refactoring for early M3.
Comment 5 Mik Kersten CLA 2007-03-30 14:06:44 EDT
Timing is working way better for me.  I've had cycles of sleep, hibernate, and VM crash and all looks consistent so far so lowering priority.
Comment 6 Robert Elves CLA 2007-04-03 20:26:53 EDT
Refactoring completed.
Comment 7 Robert Elves CLA 2007-04-03 20:26:57 EDT
Created attachment 62850 [details]
mylar/context/zip
Comment 8 Robert Elves CLA 2007-04-12 15:55:53 EDT
Some bug remains as I had timing jump for an active task. Task had been active for two days. Laptop was in suspend mode over night. Workbench cycled once on second day. 
Comment 9 Gail Murphy CLA 2007-04-12 17:41:13 EDT
Should the timer be monitoring all activity external in Windows? (I'm not sure mine is incrementing as it should).
Comment 10 Robert Elves CLA 2007-04-12 18:11:04 EDT
Monitoring activity outside of the Eclipse workbench is outside the scope of the Mylar project. However the Mylar framework can be extended to include additional monitoring facilities.
Comment 11 Robert Elves CLA 2007-04-13 09:59:09 EDT
Fixed. Bug in collapse of activity events after returning from sleep mode resolved.
Comment 12 Robert Elves CLA 2007-04-13 09:59:18 EDT
Created attachment 63746 [details]
mylar/context/zip