Home
last modified time | relevance | path

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

/developtools/profiler/device/plugins/native_hook/test/
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_test.c61 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 …]
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()
Dstatistics_test.cpp37 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()
Dhook_so.h28 char *DepthMallocSo(int depth, int mallocSize);
/developtools/smartperf_host/ide/src/trace/database/
DConfigWorker.ts16 const mallocSize = 1024 * 1024; constant
57 Module_T._Init(fn, mallocSize);
/developtools/profiler/host/smartperf/ide/src/trace/database/
DConfigWorker.ts16 const mallocSize = 1024 * 1024; constant
57 Module_T._Init(fn, mallocSize);
/developtools/profiler/device/plugins/native_daemon/src/
Dstack_preprocess.cpp188 …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/
Dhook_client.cpp327 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/
Dhook_common.h85 size_t mallocSize; member
Dhook_manager.h46 uint32_t mallocSize; member
/developtools/profiler/device/plugins/native_hook/test/unittest/
Dcheck_hook_data_test.cpp58 typedef char* (*DepthMallocSo)(int depth, int mallocSize);