Skip to content

Instantly share code, notes, and snippets.

@valueof
Created October 12, 2012 20:33
Show Gist options
  • Select an option

  • Save valueof/3881345 to your computer and use it in GitHub Desktop.

Select an option

Save valueof/3881345 to your computer and use it in GitHub Desktop.
function PC_start() {
// Also available: gc, stackwalk, jank, adb, copyProfileOnStop
let features = ["js"];
this.entries = 1000000;
this.interval = 1;
this.profiler.StartProfiler(this.entries, this.interval, features, features.length);
dump("[LOG] features: " + this.profiler.GetFeatures([]) + "\n"); // [LOG] features: stackwalk,jank,js
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment