Skip to content

Commit f503427

Browse files
committed
wall profiler needs not keep the mapper as a member
1 parent 0858a12 commit f503427

File tree

1 file changed

+1
-3
lines changed
  • packages/dd-trace/src/profiling/profilers

1 file changed

+1
-3
lines changed

packages/dd-trace/src/profiling/profilers/wall.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class NativeWallProfiler {
8686
// cpu profiling is enabled.
8787
this._withContexts = this._captureSpanData || this._timelineEnabled || this._cpuProfilingEnabled
8888
this._v8ProfilerBugWorkaroundEnabled = !!options.v8ProfilerBugWorkaroundEnabled
89-
this._mapper = undefined
9089
this._pprof = undefined
9190

9291
// Bind these to this so they can be used as callbacks
@@ -111,7 +110,6 @@ class NativeWallProfiler {
111110
start ({ mapper } = {}) {
112111
if (this._started) return
113112

114-
this._mapper = mapper
115113
this._pprof = require('@datadog/pprof')
116114
kSampleCount = this._pprof.time.constants.kSampleCount
117115

@@ -126,7 +124,7 @@ class NativeWallProfiler {
126124
this._pprof.time.start({
127125
intervalMicros: this._samplingIntervalMicros,
128126
durationMillis: this._flushIntervalMillis,
129-
sourceMapper: this._mapper,
127+
sourceMapper: mapper,
130128
withContexts: this._withContexts,
131129
lineNumbers: false,
132130
workaroundV8Bug: this._v8ProfilerBugWorkaroundEnabled,

0 commit comments

Comments
 (0)