|
@@ -351,7 +351,7 @@ mapping:
|
351
|
351
|
}
|
352
|
352
|
// Replace executable filename/buildID with the overrides from source.
|
353
|
353
|
// Assumes the executable is the first Mapping entry.
|
354
|
|
- if execName, buildId := s.ExecName, s.BuildID; execName != "" || buildId != "" {
|
|
354
|
+ if execName, buildID := s.ExecName, s.BuildID; execName != "" || buildID != "" {
|
355
|
355
|
if len(p.Mapping) == 0 {
|
356
|
356
|
// If there are no mappings, add a fake mapping to attempt symbolization.
|
357
|
357
|
// This is useful for some profiles generated by the golang runtime, which
|
|
@@ -367,8 +367,8 @@ mapping:
|
367
|
367
|
if execName != "" {
|
368
|
368
|
m.File = execName
|
369
|
369
|
}
|
370
|
|
- if buildId != "" {
|
371
|
|
- m.BuildID = buildId
|
|
370
|
+ if buildID != "" {
|
|
371
|
+ m.BuildID = buildID
|
372
|
372
|
}
|
373
|
373
|
}
|
374
|
374
|
}
|