Skip to content

Instantly share code, notes, and snippets.

@BobGneu
Created October 23, 2023 22:10
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 BobGneu/c151d7b4cb5ad73df647743d4711c4fb to your computer and use it in GitHub Desktop.
Save BobGneu/c151d7b4cb5ad73df647743d4711c4fb to your computer and use it in GitHub Desktop.
Triggering the Profiler in Cypress
cy.window().then(() => {
const profilingSessionName = `Profiling Session - Name`;
console.profile(profilingSessionName);
setTimeout(() => {
console.profileEnd(profilingSessionName);
}, totalProcessingTime);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment