mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-27 09:01:33 +00:00
fix fuzz tests
Signed-off-by: zyxzyx <zhangyixin19@huawei.com>
This commit is contained in:
parent
00b08b2b56
commit
bd744e91d1
@ -48,7 +48,6 @@ constexpr static uint32_t RIGHT_MOVE_4 = 4;
|
||||
constexpr static uint32_t RIGHT_MOVE_8 = 8;
|
||||
constexpr static uint32_t RIGHT_MOVE_16 = 16;
|
||||
constexpr static uint32_t RIGHT_MOVE_32 = 32;
|
||||
constexpr static uint64_t SIZE_MASK = 0xFFFFFF0000000000;
|
||||
|
||||
using namespace OHOS::Developtools::NativeDaemon;
|
||||
using namespace OHOS::HiviewDFX;
|
||||
@ -448,8 +447,7 @@ void StackPreprocess::SetAllocStatisticsFrame(const RawStackPtr& rawStack,
|
||||
// ignore the first two frame if dwarf unwind
|
||||
size_t idx = hookConfig_.fp_unwind() ? 0 : FILTER_STACK_DEPTH;
|
||||
callStack_.clear();
|
||||
callStack_.reserve(callFrames.size() + 1);
|
||||
callStack_.push_back(rawStack->stackConext->mallocSize | SIZE_MASK);
|
||||
callStack_.reserve(callFrames.size());
|
||||
if (!hookConfig_.offline_symbolization()) {
|
||||
FillCallStack(callFrames, batchNativeHookData, idx);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user