TS 68 CNDperfmetricannotations

'Performance Metrics Annotations' Test Specification

Author: Alexander Pepin
Version: 1.0
Lastupdate: 6.10.2009
Introduction: 'Performance Metrics Annotations' is a part of profiler functionality. It gives a possibility to see in code tags showing time spent on performing certain operations.

Contents


Test suite: General

Purpose: Check that 'Performance Metrics Annotations' appear in the source code


  1. Show annotations
    • Create Fractal sample project. Clean and build the project.
    • Run the project.
    • Click to see CPU usage details.
    • Click on 'Mandelbrot' function in the table.
    • EXPECTED RESULT: Editor shows the selected function and annotations with times. An annotation with cumulative times appears next to function name and additional annotations appear in function's body in lines containing the most time consuming operations.
  1. Hide annotations
    • Create Fractal sample project. Clean and build the project.
    • Run the project.
    • Click to see CPU usage details.
    • Click on 'Mandelbrot' function in the table.
    • Open View from Menu Bar and uncheck "Show Profile Metrics"
    • EXPECTED RESULT: Annotations disappear.
  1. Change annotations colors
    • Create Fractal sample project. Clean and build the project.
    • Do steps from previous testcases to show annotatinos
    • Open Tools->Options->Fonts&Colors->Highlighting
    • Change colors of "Profile metrics annotations"
    • Change colors of "Profile metrics source text highlighting"
    • Press OK
    • EXPECTED RESULT: Annotations and source code appearance is changed accordingly.
  1. Memory use annotations
    • Create ProfilingDemo sample project. Clean and build the project.
    • Execute the project
    • Click on 'Memory Leaks...' to see Memory Leaks details.
    • Click on the function in the table.
    • EXPECTED RESULT: Editor shows the selected function and annotations with leaked bytes.
  1. Synchronization problems annotations
    • Create ProfilingDemo sample project. Clean and build the project.
    • Execute the project
    • Click on 'Sunc Problems...' to see Thread Syncronization details.
    • Click on the function in the table.
    • EXPECTED RESULT: Editor shows the selected function and annotations with waiting time and number of locks.


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