| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 1e7253727ad85dec0a3d57b2895da27350fa3257..8161ceb57f7d9d2d7565656f25e72a0103042eb0 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -9756,6 +9756,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;
|
| }
|
| @@ -9768,6 +9772,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);
|
| }
|
|
|