TS 68 CNDClockProfiler
C/C++ Pack Test Specification for ClockProfiler
Author: Dmitry Nikitin
Version: 0.1
Lastupdate: 04.09.2009
Introduction: Test specification for Clock Profiler in NetBeans 6.8 C/C++ Pack
Contents |
Comment:
see User View for details.
Test suite: ...
Purpose: Verify ... in NetBeans C/C++ Pack 6.8
Comment:
Supported Solaris Operating System Versions:
- SPARC systems: Solaris 10 1/06 or later
- x86 systems: Solaris 10 1/06 or later, OpenSolaris 2008.11, OpenSolaris 2009.06
- Verify threads states in real time
- test TBD
- test TBD
- Verify threads states after the application finishing.
- test TBD
- test TBD
- Verify threads stack dump at any execution moment.
- test TBD
- test TBD
}}collapsedbox
Test suite: Features checking
- Checking "Live threads only" combobox
- Run ProfilingDemo sample project and press Thread Map button
{{{1}}} - Wait thread 2 and 3 finish
- Select "Live threads only" in Show combobox
Result: Thread 2 and 3 have to disappear. Only Thread 1 should be visible on thread map view - Select "Finished threads only in Show combobox
Result: On table should be only thread 2 and 3, not 1 - Select "All threads in Show combobox
Result: All threads should be visible again.
- Run ProfilingDemo sample project and press Thread Map button
- Zoom in, Zoom out, Scale to Fit.
- Run ProfilingDemo sample project and press Thread Map button
{{{1}}} - While running of the program press Zoom in, Zoom out, Scale to Fit buttons to check their work.
- http://wiki.netbeans.org/attach/TS_68_CNDClockProfiler/Zoom_buttons_TS_68_CNDClockProfiler.png
- Run ProfilingDemo sample project and press Thread Map button
- Verify Summary bar of thread states distribution
- Run ProfilingDemo sample project and press Thread Map button
{{{1}}} - Move the mouse over summary column in order to show tooltip.
- http://wiki.netbeans.org/attach/TS_68_CNDClockProfiler/Summary_tip_TS_68_CNDClockProfiler.png
- Check duration
the sum of all times should be equal time of running of the thread - Check percents
{{{1}}} - Check thread states
all visible (in Full MSA mode) threads should be on tooltip
- Run ProfilingDemo sample project and press Thread Map button
- Invoke call stack area
- Run ProfilingDemo sample project and press Thread Map button
{{{1}}} - Click on any thread on thread indicator area
{{{1}}}
http://wiki.netbeans.org/attach/TS_68_CNDClockProfiler/CallStackArea_TS_68_CNDClockProfiler.png - Check number of threads
- Check time (in seconds) of stack dump
{{{1}}} - Check thread states
{{{1}}}
- Run ProfilingDemo sample project and press Thread Map button
}}collapsedbox
Test suite: ACE
Purpose: Using big project ACE for testing
Preparation :
Download ACE from http://download.dre.vanderbilt.edu/previous_versions/ACE-5.7.1.tar.bz2
Extract files from archive.
Change directory to ACE_wrappers
#mkdir obj #cd obj #../configure CFLAGS="-g3 -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
Start IDE
Create project from existing code
-- select obj folder
-- custom configuration
-- remove "|test" from Ignore Folders Pattern
make+configure code assistance will take about 25-40 minutes.
Set Profiler->Data Profiler as DTrace and check Thread Microstates checkbox
- CPU time counting
- Open project properties for ACE and set Build->Make->Build Result as ../ACE_wrappers/obj/examples/Misc/test_profile_timer
- Run {{{1}}}
- Compare output times with indicator's time
- Compare output times with hot spots
- Compare output times with thread map
- Thread usage
- Open project properties for ACE and set Build->Make->Build Result as ../ACE_wrappers/obj/examples/Threads/thread_pool and Run->Arguments to some natural number
- Run project and verify number of created threads at indicator and in thread details view
- test
- TBD
}}

