msWriteProfilerMark method

Writes a profiling event.

Syntax

object.msWriteProfilerMark(bstrProfilerMarkName)

Parameters

bstrProfilerMarkName [in]

Type: String

An event name. This parameter may be null.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

There are no standards that apply here.

Remarks

For Windows XP, this method sends an event to an event tracing session with TraceEvent; for systems after Windows XP, this method writes an event with EventWrite.

The event includes a pointer to a window object, current markup, and the event name passed as bstrProfilerMarkName.

The bstrProfilerMarkName property has a 32-character limit when called from script.

See also

window
WorkerGlobalScope
Windows Events

 

 

Show:
© 2014 Microsoft