Skip to content

Instantly share code, notes, and snippets.

@azu

azu/block5.js Secret

Created November 19, 2017 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azu/0b3a0694a3281787cf8b82651f0d3df3 to your computer and use it in GitHub Desktop.
Save azu/0b3a0694a3281787cf8b82651f0d3df3 to your computer and use it in GitHub Desktop.
const logData = performance.getEntriesByType("mark").map(entry => {
const meta = marker.getEntryMetadata(entry);
return {
type: entry.name,
timeStamp: entry.startTime,
meta: meta
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment