mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-08 00:24:00 +00:00
commit
3e0935b03c
@ -228,7 +228,6 @@ bool HeapProfiler::UpdateHeapTracking(Stream *stream)
|
||||
UpdateHeapObjects(snapshot);
|
||||
}
|
||||
|
||||
|
||||
if (stream != nullptr) {
|
||||
snapshot->PushHeapStat(stream);
|
||||
}
|
||||
|
@ -251,7 +251,12 @@ bool JSThread::EnableGlobalPrimitiveLeakCheck() const
|
||||
|
||||
bool JSThread::IsInRunningStateOrProfiling() const
|
||||
{
|
||||
return IsInRunningState() || vm_->GetHeapProfile() != nullptr;
|
||||
bool result = IsInRunningState();
|
||||
#if defined(ECMASCRIPT_SUPPORT_HEAPPROFILER)
|
||||
return result || vm_->GetHeapProfile() != nullptr;
|
||||
#else
|
||||
return result;
|
||||
#endif
|
||||
}
|
||||
|
||||
void JSThread::WriteToStackTraceFd(std::ostringstream &buffer) const
|
||||
|
Loading…
Reference in New Issue
Block a user