MeasureTimeseries Function

Action

Determines whether to generate time series data for a specified Silk Performer measurement.

If time series data generation is enabled, data will be written to the corresponding file (.tsd) and can be analyzed with Silk Performer Performance Explorer.

Include file

Kernel.bdh

Syntax

MeasureTimeseries( in nType : number,
                   in bTimeseries : boolean ): boolean;

Return value

  • true if successful

  • false otherwise

Parameter Description
nType

Specifies the type of measurement for which to generate time series data. Silk Performer measure types are:

  • MEASURE_IIOP

  • MEASURE_TIMER

  • MEASURE_COUNTER

  • MEASURE_SQL

  • MEASURE_TRANS

  • MEASURE_FORM

  • MEASURE_TUXEDO

  • MEASURE_ALL

  • MEASURE_IIOP_ROUNDTRIP

  • MEASURE_IIOP_SERVERBUSY

  • MEASURE_TIMER_RESPONSETIME

  • MEASURE_COUNTER_CUSTOMCOUNTER

  • MEASURE_SQL_SQLPARSE

  • MEASURE_SQL_SQLEXEC

  • MEASURE_SQL_SQLEXECDIRECT

  • MEASURE_TRANS_TRANSOK

  • MEASURE_TRANS_TRANSERR

  • MEASURE_TRANS_TRANSCA

  • MEASURE_FORM_BYTESSENT

  • MEASURE_FORM_BYTESRECEIVED

  • MEASURE_FORM_HITSOK

  • MEASURE_FORM_HITSERR

  • MEASURE_FORM_ROUNDTRIP

  • MEASURE_FORM_SERVERBUSY

  • MEASURE_TUXEDO_BYTESSENT

  • MEASURE_TUXEDO_BYTESRECEIVED

  • MEASURE_TUXEDO_RESPONSETIME

bTimeseries If this parameter is set to true, Silk Performer generates time series data for the specified measure type.

Example

dcltrans
  transaction TInit
  begin
    // generate time series data for CORBA operation calls
    MeasureTimeseries(MEASURE_IIOP, true);
    // generate time series data for executed SQL commands
    MeasureTimeseries(MEASURE_SQL, true);
    // no time series data for anything else
    MeasureTimeseries(MEASURE_TIMER, false);
    MeasureTimeseries(MEASURE_COUNTER, false);
    MeasureTimeseries(MEASURE_TRANS, false);
    MeasureTimeseries(MEASURE_FORM, false);
    MeasureTimeseries(MEASURE_TUXEDO, false);
    MeasureTimeseries(MEASURE_ALL, false);
  end TInit;