Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 098e3f9a83e0b168f5072fbb6c9b141bfd893928..fbdc870c514f27d78a50a67438dd2b7950623730 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -9793,6 +9793,10 @@ Local<String> CpuProfileNode::GetFunctionName() const { |
} |
} |
+int debug::Coverage::BlockData::StartOffset() const { return block_->start; } |
+int debug::Coverage::BlockData::EndOffset() const { return block_->end; } |
+uint32_t debug::Coverage::BlockData::Count() const { return block_->count; } |
+ |
int debug::Coverage::FunctionData::StartOffset() const { |
return function_->start; |
} |
@@ -9805,6 +9809,15 @@ MaybeLocal<String> debug::Coverage::FunctionData::Name() const { |
return ToApiHandle<String>(function_->name); |
} |
+size_t debug::Coverage::FunctionData::BlockCount() const { |
+ return function_->blocks.size(); |
+} |
+ |
+debug::Coverage::BlockData debug::Coverage::FunctionData::GetBlockData( |
+ size_t i) const { |
+ return BlockData(&function_->blocks.at(i)); |
+} |
+ |
Local<debug::Script> debug::Coverage::ScriptData::GetScript() const { |
return ToApiHandle<debug::Script>(script_->script); |
} |