@@ -920,28 +920,6 @@ v8::ProfilerId WallProfiler::StartInternal() {
920920 return result.id ;
921921}
922922
923- NAN_METHOD (WallProfiler::Stop) {
924- if (info.Length () != 1 ) {
925- return Nan::ThrowTypeError (" Stop must have one argument." );
926- }
927- if (!info[0 ]->IsBoolean ()) {
928- return Nan::ThrowTypeError (" Restart must be a boolean." );
929- }
930-
931- bool restart = info[0 ].As <Boolean>()->Value ();
932-
933- WallProfiler* wallProfiler =
934- Nan::ObjectWrap::Unwrap<WallProfiler>(info.This ());
935-
936- v8::Local<v8::Value> profile;
937- auto err = wallProfiler->StopImpl (restart, profile);
938-
939- if (!err.success ) {
940- return Nan::ThrowTypeError (err.msg .c_str ());
941- }
942- info.GetReturnValue ().Set (profile);
943- }
944-
945923// stopAndCollect(restart, callback): callback result
946924NAN_METHOD (WallProfiler::StopAndCollect) {
947925 if (info.Length () != 2 ) {
@@ -1100,20 +1078,6 @@ Result WallProfiler::StopCore(bool restart, ProfileBuilder&& buildProfile) {
11001078 return {};
11011079}
11021080
1103- Result WallProfiler::StopImpl (bool restart, v8::Local<v8::Value>& profile) {
1104- return StopCore (restart,
1105- [&](const v8::CpuProfile* v8_profile,
1106- bool hasCpuTime,
1107- int64_t nonJSThreadsCpuTime,
1108- ContextsByNode* contextsByNodePtr) {
1109- profile = TranslateTimeProfile (v8_profile,
1110- includeLines_,
1111- contextsByNodePtr,
1112- hasCpuTime,
1113- nonJSThreadsCpuTime);
1114- });
1115- }
1116-
11171081Result WallProfiler::StopAndCollectImpl (bool restart,
11181082 v8::Local<v8::Function> callback,
11191083 v8::Local<v8::Value>& result) {
@@ -1148,7 +1112,6 @@ NAN_MODULE_INIT(WallProfiler::Init) {
11481112 SetContext);
11491113
11501114 Nan::SetPrototypeMethod (tpl, " start" , Start);
1151- Nan::SetPrototypeMethod (tpl, " stop" , Stop);
11521115 Nan::SetPrototypeMethod (tpl, " stopAndCollect" , StopAndCollect);
11531116 Nan::SetPrototypeMethod (tpl, " dispose" , Dispose);
11541117 Nan::SetPrototypeMethod (tpl,
0 commit comments