Skip to content

Commit 305bb37

Browse files
committed
also expose 'UseDetailedSourcePositionsForProfiling'
1 parent bea41a9 commit 305bb37

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/binding.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,6 +1744,10 @@ const v8::CpuProfile* v8__CpuProfiler__StopProfiling(v8::CpuProfiler* self, cons
17441744
return self->StopProfiling(ptr_to_local(&title));
17451745
}
17461746

1747+
void v8__CpuProfiler__UseDetailedSourcePositionsForProfiling(v8::Isolate* isolate) {
1748+
v8::CpuProfiler::UseDetailedSourcePositionsForProfiling(isolate);
1749+
}
1750+
17471751
void v8__CpuProfile__Delete(const v8::CpuProfile* self) {
17481752
const_cast<v8::CpuProfile*>(self)->Delete();
17491753
}

src/binding.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,7 @@ typedef struct CpuProfileNode CpuProfileNode;
11071107
CpuProfiler* v8__CpuProfiler__Get(Isolate* isolate);
11081108
void v8__CpuProfiler__StartProfiling(CpuProfiler* self, const String* title);
11091109
const CpuProfile* v8__CpuProfiler__StopProfiling(CpuProfiler* self, const String* title);
1110+
void v8__CpuProfiler__UseDetailedSourcePositionsForProfiling(Isolate* isolate);
11101111
void v8__CpuProfile__Delete(const CpuProfile* self);
11111112
const CpuProfileNode* v8__CpuProfile__GetTopDownRoot(const CpuProfile* self);
11121113
const String* v8__CpuProfile__Serialize(const CpuProfile* self, Isolate* isolate);

src/v8.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3117,6 +3117,10 @@ pub const CpuProfiler = struct {
31173117
}
31183118
return null;
31193119
}
3120+
3121+
pub fn useDetailedSourcePositionsForProfiling(isolate: Isolate) void {
3122+
c.v8__CpuProfiler__UseDetailedSourcePositionsForProfiling(isolate.handle);
3123+
}
31203124
};
31213125

31223126
pub const CpuProfile = struct {

0 commit comments

Comments
 (0)