Skip to content

Commit

Permalink
refactor: more ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 30, 2023
1 parent 2f066d9 commit 8f6bdd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/debug/ProfilingPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ class Profiler {
return this.sendCommand("Profiler.stop").then(({ profile }) => {
const hrtime = process.hrtime();
const endTime = hrtime[0] * 1000000 + Math.round(hrtime[1] / 1000);
// Avoid coverage problems due indirect changes
/* istanbul ignore next */
if (profile.startTime < this._startTime || profile.endTime > endTime) {
// In some cases timestamps mismatch and we need to adjust them
// Both process.hrtime and the inspector timestamps claim to be relative
Expand Down

0 comments on commit 8f6bdd4

Please sign in to comment.