Skip to content

Commit

Permalink
feat: accept name as dest identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Mar 4, 2023
1 parent f27605f commit 7b07fe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ class ClinicHeapProfiler extends events.EventEmitter {
detectPort = false,
collectOnFailure = false,
debug = false,
dest = `.clinic/${process.pid}.clinic-heapprofile`
name,
dest = `.clinic/${name || process.pid}.clinic-heapprofiler`,
} = settings

this.detectPort = !!detectPort
Expand Down

0 comments on commit 7b07fe1

Please sign in to comment.