Overview     
     Downloads     
     Installation     
     Usage     
     Mechanism     
     Contact Us     
     Links     

TopMC: Performance Counter Monitor Tool

Usage

TopMC provides two ways to use performance counters. One is performance counter trace of an entire application. The other is performance counter value of a piece of code.


Collect Performance Counter Trace
  • Set the performance counter event to counters:

               cd topmc_script/
               vim set_event_nehelam.sh (intel) or
               vim set_event_amd.sh (amd)

           After change the value of "incore_counter0_event" to what you are interested.

               ./set_event_nehelam.sh (intel) or
               ./set_event_amd.sh (amd)


  • Run your application immediately:

               python display_topmc_nehalem.py

    topmc mechanism



  • Gather the performance counters:

               python record_result.py

           The interval time of collecting counters can be varied in record_result.py by changing the sleeping time.



Monitor Piece of Codes
  • Set the performance counter event to counters:

               cd topmc_script/
               vim set_event_nehelam.sh (intel) or
               vim set_event_amd.sh (amd)

           After change the value of "incore_counter0_event" to what you are interested.

               ./set_event_nehelam.sh (intel) or
               ./set_event_amd.sh (amd)


  • Insert corresponding macros to monitored codes and rebuild the application:

               Samples can be found in the source codes.