Searched refs:mallocSize (Results 1 – 11 of 11) sorted by relevance
/developtools/profiler/device/plugins/native_hook/test/ |
D | hook_test.c | 60 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 …]
|
D | malloc_test.cpp | 59 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 …]
|
D | hook_so.cpp | 27 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()
|
D | hook_test.cpp | 29 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()
|
D | hook_so.h | 28 char *DepthMallocSo(int depth, int mallocSize);
|
/developtools/profiler/host/smartperf/ide/src/trace/database/ |
D | ConfigWorker.ts | 16 const mallocSize = 1024 * 1024; constant 60 Module_T._Init(fn, mallocSize)
|
/developtools/profiler/device/plugins/native_hook/src/ |
D | hook_client.cpp | 262 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/ |
D | hook_common.h | 64 size_t mallocSize; member
|
D | hook_manager.h | 46 uint32_t mallocSize; member
|
/developtools/profiler/device/plugins/native_daemon/src/ |
D | hook_standalone.cpp | 50 (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()
|
D | stack_preprocess.cpp | 261 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()
|