InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PerformanceStats Class Reference

Public Types

enum  EDoWhat { eGetValue, eResetValue }
 
typedef uint64(* CallBack )(EDoWhat doWhat, void *refPtr, PerformanceMetricID counter)
 

Static Public Member Functions

static uint64 GetValue (PerformanceMetricID counter)
 
static void ResetValue (PerformanceMetricID counter)
 
static void RegisterCounter (PerformanceMetricID counter, CallBack callback, void *refPtr, const PMString &shortName, const PMString &longName)
 
static void RegisterCounter (PerformanceMetricID counter, ClassID counterProvider, const PMString &shortName, const PMString &longName)
 
static void DeRegisterCounter (PerformanceMetricID counter)
 
static void GetAllMetricIDs (IPerformanceMetric::PerformanceMetricIDList &metrics)
 
static PMString GetMetricShortName (PerformanceMetricID counter)
 
static PMString GetMetricLongName (PerformanceMetricID counter)
 
static void Startup ()
 
static void Shutdown ()
 

Member Function Documentation

static PMString PerformanceStats::GetMetricShortName (PerformanceMetricID counter)
static

returns a list of all currently available metrics - note this is volatile - just because there is an ID in this list, doesn't mean that counter will still be active when you query its value