mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
worker: heap profile optimizations
PR-URL: https://github.com/nodejs/node/pull/62201 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: theanarkh <theratliter@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
This commit is contained in:
1 parent
ace802e59b
commit
eee96f7f5d
1 file changed
+2
-2
+2
-2
@@ -1121,7 +1121,8 @@ static bool serializeProfile(Isolate* isolate, std::ostringstream& out_stream) {
|
||||
if (!profile) {
|
||||
return false;
|
||||
}
|
||||
JSONWriter writer(out_stream, false);
|
||||
profiler->StopSamplingHeapProfiler();
|
||||
JSONWriter writer(out_stream, true);
|
||||
writer.json_start();
|
||||
|
||||
writer.json_arraystart("samples");
|
||||
@@ -1139,7 +1140,6 @@ static bool serializeProfile(Isolate* isolate, std::ostringstream& out_stream) {
|
||||
writer.json_objectend();
|
||||
|
||||
writer.json_end();
|
||||
profiler->StopSamplingHeapProfiler();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user