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


  1. Verify threads states in real time
    1. test TBD
  1. Verify threads states after the application finishing.
    1. test TBD


  1. Verify threads stack dump at any execution moment.
    1. test TBD


}}collapsedbox

Test suite: Features checking

  1. Checking "Live threads only" combobox
    1. Run ProfilingDemo sample project and press Thread Map button
      {{{1}}}
    2. Wait thread 2 and 3 finish
    3. 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
    4. Select "Finished threads only in Show combobox
      Result: On table should be only thread 2 and 3, not 1
    5. Select "All threads in Show combobox
      Result: All threads should be visible again.
  2. Zoom in, Zoom out, Scale to Fit.
    1. Run ProfilingDemo sample project and press Thread Map button
      {{{1}}}
    2. While running of the program press Zoom in, Zoom out, Scale to Fit buttons to check their work.
    3. http://wiki.netbeans.org/attach/TS_68_CNDClockProfiler/Zoom_buttons_TS_68_CNDClockProfiler.png
  3. Verify Summary bar of thread states distribution
    1. Run ProfilingDemo sample project and press Thread Map button
      {{{1}}}
    2. Move the mouse over summary column in order to show tooltip.
    3. http://wiki.netbeans.org/attach/TS_68_CNDClockProfiler/Summary_tip_TS_68_CNDClockProfiler.png
    4. Check duration
      the sum of all times should be equal time of running of the thread
    5. Check percents
      {{{1}}}
    6. Check thread states
      all visible (in Full MSA mode) threads should be on tooltip
  4. Invoke call stack area
    1. Run ProfilingDemo sample project and press Thread Map button
      {{{1}}}
    2. Click on any thread on thread indicator area
      {{{1}}}
      http://wiki.netbeans.org/attach/TS_68_CNDClockProfiler/CallStackArea_TS_68_CNDClockProfiler.png
    3. Check number of threads
    4. Check time (in seconds) of stack dump
      {{{1}}}
    5. Check thread states
      {{{1}}}

}}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

  1. CPU time counting
    1. Open project properties for ACE and set Build->Make->Build Result as ../ACE_wrappers/obj/examples/Misc/test_profile_timer
    2. Run {{{1}}}
    3. Compare output times with indicator's time
    4. Compare output times with hot spots
    5. Compare output times with thread map
  2. Thread usage
    1. 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
    2. Run project and verify number of created threads at indicator and in thread details view
  3. test
    1. TBD

}}

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo