Click or drag to resize
DigitalRuneProfilerSetFormat Method
Sets the formatting data for ProfilerData.

Namespace: DigitalRune.Diagnostics
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public static void SetFormat(
	string name,
	double scale,
	string description
)

Parameters

name
Type: SystemString
The name of the ProfilerData.
scale
Type: SystemDouble
The scale.
description
Type: SystemString
The description.
Remarks

This method allows to specify additional data that is used in the DumpAll and Dump methods.

All ProfilerData instances with the same name use the same formatting data (across threads). The data values are multiplied with the scale and the description is added to the dump output.

Examples
Here, the profiler data of the method "Foo" is scaled, so that the values are in µs. A description is set so that the user knows the unit of the displayed values.
C#
Profiler.SetFormat("Foo", 1e6f, "[µs]");
See Also