File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
packages/dd-trace/src/profiling/profilers Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ class NativeWallProfiler {
86
86
// cpu profiling is enabled.
87
87
this . _withContexts = this . _captureSpanData || this . _timelineEnabled || this . _cpuProfilingEnabled
88
88
this . _v8ProfilerBugWorkaroundEnabled = ! ! options . v8ProfilerBugWorkaroundEnabled
89
- this . _mapper = undefined
90
89
this . _pprof = undefined
91
90
92
91
// Bind these to this so they can be used as callbacks
@@ -111,7 +110,6 @@ class NativeWallProfiler {
111
110
start ( { mapper } = { } ) {
112
111
if ( this . _started ) return
113
112
114
- this . _mapper = mapper
115
113
this . _pprof = require ( '@datadog/pprof' )
116
114
kSampleCount = this . _pprof . time . constants . kSampleCount
117
115
@@ -126,7 +124,7 @@ class NativeWallProfiler {
126
124
this . _pprof . time . start ( {
127
125
intervalMicros : this . _samplingIntervalMicros ,
128
126
durationMillis : this . _flushIntervalMillis ,
129
- sourceMapper : this . _mapper ,
127
+ sourceMapper : mapper ,
130
128
withContexts : this . _withContexts ,
131
129
lineNumbers : false ,
132
130
workaroundV8Bug : this . _v8ProfilerBugWorkaroundEnabled ,
You can’t perform that action at this time.
0 commit comments