Home
last modified time | relevance | path

Searched refs:mallocSize (Results 1 – 11 of 11) sorted by relevance

/developtools/profiler/device/plugins/native_hook/test/
Dhook_test.c60 char* DepthMalloc(int depth, int mallocSize) in DepthMalloc() argument
62 if (mallocSize <= 0) { in DepthMalloc()
68 return (char*)malloc(mallocSize); in DepthMalloc()
70 return (DepthMalloc(depth - 1, mallocSize)); in DepthMalloc()
104 void ApplyForMalloc(int mallocSize) in ApplyForMalloc() argument
106 printf("\nstart malloc apply (size = %d)\n", mallocSize); in ApplyForMalloc()
111 char* p = DepthMalloc(STATIC_DEPTH, mallocSize); in ApplyForMalloc()
119 printf("malloc success, malloc (%d) time is %f\n", mallocSize, duration); in ApplyForMalloc()
130 void ApplyForCalloc(int mallocSize) in ApplyForCalloc() argument
132 int callocSize = mallocSize / sizeof(char); in ApplyForCalloc()
[all …]
Dmalloc_test.cpp59 static char* DepthMalloc(int depth, int mallocSize) in DepthMalloc() argument
61 if (mallocSize <= 0) { in DepthMalloc()
67 return (char*)malloc(mallocSize); in DepthMalloc()
69 return (DepthMalloc(depth - 1, mallocSize)); in DepthMalloc()
103 static void ApplyForMalloc(int mallocSize) in ApplyForMalloc() argument
105 printf("\nstart malloc apply (size = %d)\n", mallocSize); in ApplyForMalloc()
110 char* p = DepthMalloc(STATIC_DEPTH, mallocSize); in ApplyForMalloc()
118 printf("malloc success, malloc (%d) time is %f\n", mallocSize, duration); in ApplyForMalloc()
129 static void ApplyForCalloc(int mallocSize) in ApplyForCalloc() argument
131 int callocSize = mallocSize / sizeof(char); in ApplyForCalloc()
[all …]
Dhook_so.cpp27 char *DepthMallocSo(int depth, int mallocSize) in DepthMallocSo() argument
29 if (mallocSize <= 0) { in DepthMallocSo()
35 return new char[mallocSize]; in DepthMallocSo()
37 return (DepthMallocSo(depth - 1, mallocSize)); in DepthMallocSo()
Dhook_test.cpp29 typedef char* (*DepthMallocSo)(int depth, int mallocSize);
75 char *DepthMalloc(int depth, int mallocSize) in DepthMalloc() argument
77 if (mallocSize <= 0) { in DepthMalloc()
83 return new char[mallocSize]; in DepthMalloc()
85 return (DepthMalloc(depth - 1, mallocSize)); in DepthMalloc()
Dhook_so.h28 char *DepthMallocSo(int depth, int mallocSize);
/developtools/profiler/host/smartperf/ide/src/trace/database/
DConfigWorker.ts16 const mallocSize = 1024 * 1024; constant
60 Module_T._Init(fn, mallocSize)
/developtools/profiler/device/plugins/native_hook/src/
Dhook_client.cpp262 rawdata.mallocSize = size; in hook_malloc()
356 rawdata.mallocSize = number * size; in hook_calloc()
448 rawdata.mallocSize = size; in hook_realloc()
463 freeData.mallocSize = 0; in hook_realloc()
547 rawdata.mallocSize = 0; in hook_free()
618 rawdata.mallocSize = length; in hook_mmap()
690 rawdata.mallocSize = length; in hook_munmap()
723 rawdata.mallocSize = arg4; in hook_prctl()
853 rawdata.mallocSize = size; in ohos_malloc_hook_memtag()
/developtools/profiler/device/plugins/native_daemon/include/
Dhook_common.h64 size_t mallocSize; member
Dhook_manager.h46 uint32_t mallocSize; member
/developtools/profiler/device/plugins/native_daemon/src/
Dhook_standalone.cpp50 (int64_t)data->ts.tv_sec, data->ts.tv_nsec, (uint64_t)data->addr, data->mallocSize); in writeFrames()
56 (int64_t)data->ts.tv_sec, data->ts.tv_nsec, (uint64_t)data->addr, data->mallocSize); in writeFrames()
59 (int64_t)data->ts.tv_sec, data->ts.tv_nsec, (uint64_t)data->addr, data->mallocSize); in writeFrames()
Dstack_preprocess.cpp261 allocEvent->set_size(static_cast<uint64_t>(rawStack->stackConext.mallocSize)); in SetHookData()
288 mmapEvent->set_size(static_cast<uint64_t>(rawStack->stackConext.mallocSize)); in SetHookData()
302 munmapEvent->set_size(static_cast<uint64_t>(rawStack->stackConext.mallocSize)); in SetHookData()
314 tagEvent->set_size(rawStack->stackConext.mallocSize); in SetHookData()
367 …k->stackConext.ts.tv_nsec, (uint64_t)rawStack->stackConext.addr, rawStack->stackConext.mallocSize); in writeFrames()