PdceStartup Function

Action

This function initializes the PDCE and increases the reference counter. An interval manager is created on the first call to PdceStartup(). It should be called in a TInit transaction before all other PDCE function calls.

Include file

Pdce.bdh

Syntax

PdceStartup( ): boolean;

Return value

  • true if successful

  • false otherwise

Example

Const
  STRING_SIZE            := 1024;
  PERFMON_SAMPLE_MEASURE := "PERFMON:\\Processor(_Total)\\% Processor Time@localhost"; 

dcltrans
  transaction TInit
  var    
    sMeasureKey        : string;    
    sMeasureName       : array[10] of string;    
    sDescription       : string; 

begin
    // Insert here the initial statements
    PdceStartup();    
    PdceClientRegister(pClient, uiPdceInternalQueryInterval);    
    sMeasureKey := PERFMON_SAMPLE_MEASURE;    
    sMeasureName[1] := "PerfmonMeasure1";    
    PdceAddMeasure(pClient, sMeasureName[1], sMeasureKey, pMeasure[1]);        

    PdceMeasureQueryInfo(pMeasure[1], sDescription, STRING_SIZE);
    write(sMeasureName[1]);
    write(": ");
    writeln(sDescription);
    writeln;
end TInit;