open-telemetry / opentelemetry-ebpf-profiler

The production-scale datacenter profiler (C/C++, Go, Rust, Python, Java, NodeJS, .NET, PHP, Ruby, Perl, ...)
Apache License 2.0
2.47k stars 273 forks source link

no v8 stacks #219

Open tmm1 opened 2 weeks ago

tmm1 commented 2 weeks ago

i'm seeing kernel and nodejs/v8 C/c++ stacks, but no app level data. what's the best way to debug?

i'm using a nodejs fork called nsolid if that matters. the nsolid binary is also stripped, but i'm working to rebuild it.

tmm1 commented 2 weeks ago
diff --git a/interpreter/nodev8/v8.go b/interpreter/nodev8/v8.go
index 01c09ab..be8a698 100644
--- a/interpreter/nodev8/v8.go
+++ b/interpreter/nodev8/v8.go
@@ -223,7 +223,7 @@ const (

 var (
    // regex for the interpreter executable
-   v8Regex = regexp.MustCompile(`^(?:.*/)?node(\d+)?$`)
+   v8Regex = regexp.MustCompile(`^(?:.*/)?(?:nsolid|node)(\d+)?$`)

    // The FileID used for V8 stub frames
    v8StubsFileID = libpf.NewFileID(0x578b, 0x1d)