This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 172578

Summary: request that ProfilingDemo tell the run time when it asks to press enter
Product: cnd Reporter: Susan Morgan <susanm>
Component: ProfileAssignee: Alexey Vladykin <alexey_vladykin>
Status: RESOLVED FIXED    
Severity: blocker CC: jkovalsky
Priority: P3 Keywords: NETFIX, SIMPLEFIX
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: my first work :) Is it good?
my first work :) Is it good?
My first work. Is it good? :)
OK, i understand...and have already done :) it's bad that i didn't guess at once :( it's simple...need more experience!!! :)

Description Susan Morgan 2009-09-18 15:52:27 UTC
If the ProfilingDemo program could output the number of seconds in the run time whenever it says "Press Enter to start"
it would make it much easier to map what the program is doing to what the profiling tools are showing at a given point
in time.
Comment 1 exlerok 2009-10-25 18:01:09 UTC
Created attachment 90063 [details]
my first work :) Is it good?
Comment 2 exlerok 2009-10-25 18:03:22 UTC
Created attachment 90064 [details]
my first work :) Is it good?
Comment 3 exlerok 2009-10-25 18:04:26 UTC
Created attachment 90065 [details]
My first work. Is it good? :)
Comment 4 Alexey Vladykin 2009-10-27 17:59:23 UTC
Roman, thank you for the patch! I have some suggestions:
1. No need for globalcurrtime. A local variable can be declared and used where appropriate instead of this global one.
2. Printing of current run time should be part of PAUSE() macro to guarantee that every pause prints current time.
3. It is not necessary to print time when program ends, so please remove "Finish time is ..." from mutex.c. Also you
should not assume that program ends after mutex_demo().
Comment 5 exlerok 2009-10-27 19:21:03 UTC
Created attachment 90150 [details]
OK, i understand...and have already done :) it's bad that i didn't guess at once :(  it's simple...need more experience!!! :)
Comment 6 Jiri Kovalsky 2009-10-28 11:29:40 UTC
This will be tracked as a NetFIX [1] issue from now on. Thanks Roman for the contribution! Alexey, would you be so kind
and do the review and integration of the second patch?

[1] http://wiki.netbeans.org/NetFIX
Comment 7 Alexey Vladykin 2009-11-09 08:08:49 UTC
I'm going to apply the patch now.
Comment 8 Alexey Vladykin 2009-11-09 09:36:00 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/d0c17efda703
Comment 9 Jiri Kovalsky 2009-11-27 04:28:22 UTC
Thank you very much Alexey for integration and especially Roman for your patch!