/developtools/profiler/device/plugins/native_hook/test/ |
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_test.c | 61 char* DepthMalloc(int depth, int mallocSize) in DepthMalloc() argument 63 if (mallocSize <= 0) { in DepthMalloc() 69 return (char*)malloc(mallocSize); in DepthMalloc() 71 return (DepthMalloc(depth - 1, mallocSize)); in DepthMalloc() 105 void ApplyForMalloc(int mallocSize) in ApplyForMalloc() argument 107 printf("\nstart malloc apply (size = %d)\n", mallocSize); in ApplyForMalloc() 112 char* p = DepthMalloc(STATIC_DEPTH, mallocSize); in ApplyForMalloc() 120 printf("malloc success, malloc (%d) time is %f\n", mallocSize, duration); in ApplyForMalloc() 131 void ApplyForCalloc(int mallocSize) in ApplyForCalloc() argument 133 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 | statistics_test.cpp | 37 typedef char* (*DepthMallocSo)(int depth, int mallocSize); 84 static bool DepthMallocFree(int depth = 0, int mallocSize = 100) in DepthMallocFree() argument 86 if (depth < 0 || mallocSize <= 0) { in DepthMallocFree() 90 char* ptr = static_cast<char*>(malloc(mallocSize)); in DepthMallocFree() 100 return (DepthMallocFree(depth - 1, mallocSize)); in DepthMallocFree()
|
D | hook_so.h | 28 char *DepthMallocSo(int depth, int mallocSize);
|
/developtools/smartperf_host/ide/src/trace/database/ |
D | ConfigWorker.ts | 16 const mallocSize = 1024 * 1024; constant 57 Module_T._Init(fn, mallocSize);
|
/developtools/profiler/host/smartperf/ide/src/trace/database/ |
D | ConfigWorker.ts | 16 const mallocSize = 1024 * 1024; constant 57 Module_T._Init(fn, mallocSize);
|
/developtools/profiler/device/plugins/native_daemon/src/ |
D | stack_preprocess.cpp | 188 …ime_instance->HandleMapInfo(reinterpret_cast<uint64_t>(mmapRawData->addr), mmapRawData->mallocSize, in TakeResults() 472 allocEvent->set_size(static_cast<uint64_t>(rawStack->stackConext->mallocSize)); in SetHookData() 481 mmapEvent->set_size(static_cast<uint64_t>(rawStack->stackConext->mallocSize)); in SetHookData() 486 mmapEvent->set_size(static_cast<uint64_t>(rawStack->stackConext->mallocSize)); in SetHookData() 496 munmapEvent->set_size(static_cast<uint64_t>(rawStack->stackConext->mallocSize)); in SetHookData() 504 tagEvent->set_size(rawStack->stackConext->mallocSize); in SetHookData() 508 mmapEvent->set_size(static_cast<uint64_t>(rawStack->stackConext->mallocSize)); in SetHookData() 517 munmapEvent->set_size(static_cast<uint64_t>(rawStack->stackConext->mallocSize)); in SetHookData() 546 record.applySize += rawStack->stackConext->mallocSize; in SetAllocStatisticsData() 548 std::pair(rawStack->stackConext->mallocSize, &recordIter->second); in SetAllocStatisticsData() [all …]
|
/developtools/profiler/device/plugins/native_hook/src/ |
D | hook_client.cpp | 327 rawdata.mallocSize = size; in hook_malloc() 413 rawdata.mallocSize = number * size; in hook_calloc() 501 rawdata.mallocSize = size; in hook_realloc() 510 freeData.mallocSize = 0; in hook_realloc() 584 rawdata.mallocSize = 0; in hook_free() 605 curRawdata.mallocSize = rawdata.mallocSize; in SendMmapFileRawData() 672 rawdata.mallocSize = length; in hook_mmap() 762 rawdata.mallocSize = length; in hook_munmap() 794 rawdata.mallocSize = arg4; in hook_prctl() 856 rawdata.mallocSize = size; in hook_memtrace()
|
/developtools/profiler/device/plugins/native_daemon/include/ |
D | hook_common.h | 85 size_t mallocSize; member
|
D | hook_manager.h | 46 uint32_t mallocSize; member
|
/developtools/profiler/device/plugins/native_hook/test/unittest/ |
D | check_hook_data_test.cpp | 58 typedef char* (*DepthMallocSo)(int depth, int mallocSize);
|