Performance Monitor Library Objects

See Working with Performance Monitoring Functions.

Function / Event

Return Value

Description

Syntax

Create and Start Data Collection for given ProcessIds

None

Creates the data collection set and starts collecting the system logs for the given process IDs.

Specify the list of process IDs that the system logs, to collect. You can find the process IDs in the Services tab of your Windows Task Manager.

Specify the format of the log file. Valid values are:

0: Comma separated .• (.csv)

1: Tab separated (.tsv)

2: SQL file (.sql)

3: Binary file (.blg)

Specify the instance of the CollectorInfo business type, which needs to be started.

This business type represents the DataCollectorSet in the Performance Monitor tool. The DataCollectorSet is used to collect data based on various performance counters. The CollectorInfo business type is in the Direct.Perfmon.Library.dll under the General category.

Create and Start Data Collection for processIds <logFileFormat> [ProcessIdList>] with CollectorInfo <info>

Stop Data Collection for given ProcessIds

None

Stops collecting the system logs for the given Collector Info (the instance of the CollectorInfo business type, which needs to be stopped).

This business type represents the DataCollectorSet in the Performance Monitor tool. The DataCollectorSet is used to collect data based on various performance counters.

The CollectorInfo business type is in the Direct.Perfmon.Library.dll under the General category.

Stop Data Collection with CollectorInfo <info>