Skip to content

Commit

Permalink
refactor: naming for non-core perf
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Oct 2, 2023
1 parent 368f0b0 commit 503d1c9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/performance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,15 +246,15 @@ export class Performance {
oclifDebug('Command Load Time: %sms', Performance.oclifPerf['oclif.commandLoadMs'].toFixed(4))
oclifDebug('Command Run Time: %sms', Performance.oclifPerf['oclif.commandRunMs'].toFixed(4))

const nonOclifDebug = require('debug')('non-oclif-perf')
const nonCoreDebug = require('debug')('non-oclif-perf')

const nonOclifPerf = Performance.results
if (nonOclifPerf.size > 0) {
nonOclifDebug('Non-Oclif Performance Measurements:')
for (const [owner, results] of nonOclifPerf) {
nonOclifDebug(` ${owner}:`)
const nonCorePerf = Performance.results
if (nonCorePerf.size > 0) {
nonCoreDebug('Non-Core Performance Measurements:')
for (const [owner, results] of nonCorePerf) {
nonCoreDebug(` ${owner}:`)
for (const result of results) {
nonOclifDebug(` ${result.name}: ${result.duration.toFixed(4)}ms`)
nonCoreDebug(` ${result.name}: ${result.duration.toFixed(4)}ms`)
}
}
}
Expand Down

0 comments on commit 503d1c9

Please sign in to comment.