Class PerformanceMark
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
PerformanceMark is an interface for PerformanceEntry objects with an EntryType of "mark".
[Value("PerformanceMark")]
public class PerformanceMark : PerformanceEntry
- Inheritance
-
PerformanceMark
- Inherited Members
Remarks
Entries of this type are typically created by calling Mark(string, PerformanceMarkOptions) to add a named Number (the mark) to the browser's performance timeline. To create a performance mark that isn't added to the browser's performance timeline, use the constructor.
Constructors
PerformanceMark()
public PerformanceMark()
PerformanceMark(string, PerformanceMarkOptions)
The PerformanceMark() constructor creates a Number with the given name.
public PerformanceMark(string markName, PerformanceMarkOptions markOptions = null)
Parameters
markNamestringmarkOptionsPerformanceMarkOptions
Remarks
Unlike Mark(string, PerformanceMarkOptions), performance marks created by the constructor aren't added to the browser's performance timeline. This means that calls to the Performance interface's getEntries*() methods (GetEntries(), GetEntriesByName(string, string) or GetEntriesByType(string)) won't show entries for these marks.
Properties
Detail
The read-only detail property returns arbitrary metadata that was included in the mark upon construction (either when using Mark(string, PerformanceMarkOptions) or the PerformanceMark(string, PerformanceMarkOptions) constructor).
[Value("detail")]
public dynamic Detail { get; }
Property Value
- dynamic
Returns the value it is set to (from
markOptionsof Mark(string, PerformanceMarkOptions) or the PerformanceMark(string, PerformanceMarkOptions) constructor).