Name

TAU_TRACK_POWER — Initializes POWER tracking system

Synopsis

C/C++:

TAU_TRACK_POWER();

Fortran:

TAU_TRACK_POWER();

Description

For power profiling, there are two modes of operation: 1) the user explicitly inserts TAU_TRACK_POWER_HERE() calls in the source code and the power event is triggered at those locations, and 2) the user enables tracking POWER by calling TAU_TRACK_POWER() and an interrupt is generated every 10 seconds and the POWER event is triggered with the current value. Also, this interrupt interval can be changed by calling TAU_SET_INTERRUPT_INTERVAL(value). The tracking of power events in both cases can be explictly enabled or disabled by calling the macros TAU_ENABLE_TRACKING_POWER() or TAU_DISABLE_TRACKING_() respectively.

Example

C/C++ :

TAU_TRACK_POWER();      
    

Fortran :

call TAU_TRACK_POWER()
    

Python:

import pytau

pytau.trackPower()