TS 67 CNDobservability

Observability Tool Test Specification

Author: Alexander Pepin
Version: 1.0
Lastupdate: 13.3.2009
Introduction: Observability Tool allows users to easily see basic issues in the developed applications. When a user is running C/C++ project in a special monitoring mode he/she can see small indicator panels (Performance, Memory, CPU, Synchronization, etc.) where some short information about monitored application is displayed. Indicator is a very small element that is (by default) always shown on the screen and is updated frequently while the program is running. Double-clicking on each indicator opens correspondent detailed view. Currently it works only on Solaris and Linux.

Contents


Test suite: Basic scenario

Purpose: Check that indicators appear when application is running
Setup: Run IDE. Create any C/C++ sample project (e.g. Fractal) from New Project > Samples > C/C++> Fractal. Clean and build the project.


  1. Indicators appear
    1. Run the project.
    • EXPECTED RESULT: Project is running. Indicators window appears and contains three indicators: CPU usage, Memory usage, Thread usage.


Test suite: Indicators and detailed views

Purpose: Check that indicators and detailed view show information properly
Setup: Unpack attached project. Run IDE. Open the project using Open Project > GizmoDemo. Clean and build the project.


  1. CPU usage indicator and detailed view
    1. Run the project.
    2. Check that CPU indicator display CPU usage information as graph that shows the history of the user time (in blue) and system time (in red) percentage during last 30 seconds
    3. Click on the CPU indicator
    • EXPECTED RESULT: Detailed CPU view appears. It shows a table of hot spots in the terms of functions. It shows:
    • *CPU Time (Inclusive)
    • *CPU Time (Exclusive)
    1. Double-click on any function in the table
    • EXPECTED RESULT: The function is opened in the editor
  1. Memory usage indicator and detailed view
    1. Run the project.
    2. Check that Memory indicator display Memory usage information and numbers:
    • the current amount of virtual memory occupied by user program
    • the peak amount of memory occupied since program startup
    1. Click on the Memory indicator
    • EXPECTED RESULT: Detailed Memory view appears. It shows a table of functions/lines that allocated memory, and did not freed it, with the amount of memory allocated and not freed at the moment user opens view (in the case the program is still running) or my the moment program finished (if it has already finished).
    1. Double-click on any function in the table
    • EXPECTED RESULT: The function is opened in the editor
  1. Thread usage indicator and detailed view
    1. Run the project.
    2. Check that Thread usage indicator shows a number of all threads and a number of locked threads. The colors of the graphs mean:
    • green for all threads
    • orange for locked threads
    1. Click on the Thread usage indicator
    • EXPECTED RESULT: Thread usage view appears. It shows a table of functions/lines that shows:
    • *Time spent on waiting
    • *Lock waits
    1. Double-click on any function in the table
    • EXPECTED RESULT: The function is opened in the editor


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