TutProcInfo


Name

TutProcInfo — returns process related information

Synopsis

void TutProcInfo(request, data) 
T_PRINFO_TYPE request; 
T_PTR data; 

Arguments

request — the information type requested.

data — a pointer to the location to store the returned data.

Return Values

TRUE if successful, FALSE otherwise.

Diagnostics

None

Description

TutProcInfo returns process related information. The value given for request determines the information returned. Available values for request are:

See Also

None

Examples

This example gets the percentage of CPU time used by the current process then prints it:

T_REAL8 cpu_utilization; 
T_BOOL  status = T_TRUE; 
 
status = TutProcInfo(T_PRINFO_CPU_UTILIZATION, &cpu_utilization); 
if (T_FALSE == status) { 
  /* print error */ 
} 

TIBCO SmartSockets™ Utilities
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com