Skip to content

Instantly share code, notes, and snippets.

@azu

azu/block2.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/8ff0ad4cc7db6dade239671bf8ca3be4 to your computer and use it in GitHub Desktop.
Save azu/8ff0ad4cc7db6dade239671bf8ca3be4 to your computer and use it in GitHub Desktop.
import { PerformanceMetadataMarker } from "performance-mark-metadata";
const nodePerformanceHook = require("perf_hooks");
const performance = nodePerformanceHook.performance;
const marker = new PerformanceMetadataMarker({
performance
});
marker.mark("name", {
details: { key: "value" }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment