Home
last modified time | relevance | path

Searched refs:StringPrintf (Results 1 – 18 of 18) sorted by relevance

/developtools/profiler/device/plugins/native_daemon/include/
Dperf_event_record.h75 return StringPrintf("ip: 0x%016llx sp: 0x%016llx", ip_, sp_); in ToString()
81 output = StringPrintf("va: 0x%016llx(%llx) ", vaddrInFile_, ip_); in ToSymbolString()
83 output = StringPrintf("ip: 0x%016llx ", ip_); in ToSymbolString()
Dutilities.h191 std::string StringPrintf(const char *stringFormat, VA... args) in StringPrintf() function
/developtools/hiperf/src/
Dsubcommand_stat.cpp358 commentStr = StringPrintf("%lf cpus used", reportSum->commentSum); in MakeComments()
362 commentStr = StringPrintf("%lf GHz", reportSum->commentSum); in MakeComments()
366 commentStr = StringPrintf("%lf cycles per instruction", reportSum->commentSum); in MakeComments()
370 commentStr = StringPrintf("%lf miss rate", reportSum->commentSum); in MakeComments()
375 commentStr = StringPrintf("%.3lf G/sec", reportSum->commentSum / 1e9); in MakeComments()
379 commentStr = StringPrintf("%.3lf M/sec", reportSum->commentSum / 1e6); in MakeComments()
383 commentStr = StringPrintf("%.3lf K/sec", reportSum->commentSum / 1e3); in MakeComments()
386 commentStr = StringPrintf("%.3lf /sec", reportSum->commentSum); in MakeComments()
482 comments[configName] = StringPrintf("%lf cpus used", used_cpus); in GetComments()
494 comments[configName] = StringPrintf("%lf GHz", hz / 1e9); in GetComments()
[all …]
Dregister.cpp117 return StringPrintf("%s: %" PRIx64 "", PERF_CONTEXT_NAME.at(addr).c_str(), addr); in UpdatePerfContext()
120 return StringPrintf("unknow context: %" PRIx64 "", addr); in UpdatePerfContext()
Doption_debug.cpp113 std::string tagUsage = StringPrintf("%s\t%-20s\t%s\t%-20s\t%s", in RegisterMainCommandDebug()
Dsubcommand_dump.cpp385 StringPrintf("hiperf_%d_%d_user_regs_%zu.dump", recordSample.data_.pid, in ExprotUserStack()
393 StringPrintf("hiperf_%d_%d_user_data_%zu.dump", recordSample.data_.pid, in ExprotUserStack()
412 StringPrintf("hiperf_%d_%d_sample_record_%zu_%" PRIu64 ".dump", recordSample->data_.pid, in ExprotUserData()
Dvirtual_thread.cpp261 std::string mapPath = StringPrintf("/proc/%d/maps", pid_); in ParseServiceMap()
287 std::string mapPath = StringPrintf("/proc/%d/maps", devhost); in ParseDevhostMap()
Dvirtual_runtime.cpp88 comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str(); in ReadThreadName()
90 comm = ReadFileToString(StringPrintf("/proc/%d/cmdline", tid)).c_str(); in ReadThreadName()
Dsymbols_file.cpp707 procPath = StringPrintf("/proc/%u/uallsyms", SYSMGR_PID); in LoadKernelSyms()
Dsubcommand_record.cpp1473 StringPrintf("%d", virtualRuntime_.devhostPid_)); in AddDevhostFeature()
/developtools/hiperf/include/
Dreport.h99 return StringPrintf("%" PRIu64 "(%" PRIu64 ")%s(%s+0x%" PRIx64 ") child %zu", eventCount_, in ToDebugString()
169 return StringPrintf("%d:%d:%s-%s(%s):%zu i:%llu", pid_, tid_, comm_.data(), func_.data(), in ToDebugString()
191 return StringPrintf(format.c_str(), len, a.eventCount_); in GetEventCount()
205 return StringPrintf(format.c_str(), len, a.pid_); in GetPid()
219 return StringPrintf(format.c_str(), len, a.tid_); in GetTid()
230 return StringPrintf(format.c_str(), len, a.comm_.data()); in GetComm()
240 return StringPrintf(format.c_str(), len, a.func_.data()); in GetFunc()
250 return StringPrintf(format.c_str(), len, a.dso_.data()); in GetDso()
260 return StringPrintf(format.c_str(), len, a.fromDso_.data()); in GetFromDso()
270 return StringPrintf(format.c_str(), len, a.fromFunc_.data()); in GetFromFunc()
[all …]
Dperf_event_record.h75 return StringPrintf("ip: 0x%016llx sp: 0x%016llx", ip_, sp_); in ToString()
79 std::string output = StringPrintf(" 0x%016llx : ", ip_); in ToSymbolString()
82 output += StringPrintf("[0x%016llx:0x%016llx][+0x%llx]", ip_ - offsetToVaddr_, in ToSymbolString()
Dutilities.h193 std::string StringPrintf(const char *stringFormat, VA... args) in StringPrintf() function
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
Dutilities_test.cpp437 HWTEST_F(UtilitiesTest, StringPrintf, TestSize.Level1)
439 EXPECT_STREQ(StringPrintf("").c_str(), "");
440 EXPECT_STREQ(StringPrintf("123").c_str(), "123");
441 EXPECT_STREQ(StringPrintf("%d%s%c", 1, "2", 'c').c_str(), "12c");
442 EXPECT_STREQ(StringPrintf("%d%s%c\t\n", 1, "2", 'c').c_str(), "12c\t\n");
447 EXPECT_STRNE(StringPrintf(format).c_str(), format);
449 EXPECT_STREQ(StringPrintf(format).c_str(), format);
450 EXPECT_STREQ(StringPrintf(nullptr).c_str(), "");
/developtools/hiperf/test/unittest/common/native/
Dutilities_test.cpp432 HWTEST_F(UtilitiesTest, StringPrintf, TestSize.Level1)
434 EXPECT_STREQ(StringPrintf("").c_str(), "");
435 EXPECT_STREQ(StringPrintf("123").c_str(), "123");
436 EXPECT_STREQ(StringPrintf("%d%s%c", 1, "2", 'c').c_str(), "12c");
437 EXPECT_STREQ(StringPrintf("%d%s%c\t\n", 1, "2", 'c').c_str(), "12c\t\n");
442 EXPECT_STRNE(StringPrintf(format).c_str(), format);
444 EXPECT_STREQ(StringPrintf(format).c_str(), format);
445 EXPECT_STREQ(StringPrintf(nullptr).c_str(), "");
/developtools/profiler/device/plugins/native_daemon/src/
Dregister.cpp161 return StringPrintf("%s: %" PRIx64 "", PERF_CONTEXT_NAME.at(addr).c_str(), addr); in UpdatePerfContext()
164 return StringPrintf("unknow context: %" PRIx64 "", addr); in UpdatePerfContext()
Dvirtual_thread.cpp109 std::string comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str(); in ReadThreadName()
224 std::string mapPath = StringPrintf("/proc/%d/maps", pid_); in ParseMap()
Dvirtual_runtime.cpp64 std::string comm = ReadFileToString(StringPrintf("/proc/%d/comm", tid)).c_str(); in ReadThreadName()