Created
October 23, 2023 22:10
-
-
Save BobGneu/c151d7b4cb5ad73df647743d4711c4fb to your computer and use it in GitHub Desktop.
Triggering the Profiler in Cypress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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