wtfCreateScope
wtfCreateScope
Experimental Const
Variable Export
export wtfCreateScope
Create trace scope.
Scopes must be strictly nested and are analogous to stack frames, but do not have to follow the stack frames. Instead it is recommended that they follow logical nesting. You may want to use Event Signatures as they are defined in WTF.
Used to mark scope entry. The return value is used to leave the scope.
var myScope = wtfCreateScope('MyClass#myMethod(ascii someVal)');
someMethod() {
var s = myScope('Foo'); // 'Foo' gets stored in tracing UI
// DO SOME WORK