Home
last modified time | relevance | path

Searched refs:GetInstance (Results 1 - 25 of 151) sorted by relevance

1234567

/developtools/profiler/device/services/shared_memory/test/unittest/
H A Dshared_memory_allocator_test.cpp70 ASSERT_TRUE(ShareMemoryAllocator::GetInstance().CreateMemoryBlockLocal("testname", 0) == in HWTEST_F()
72 ASSERT_FALSE(ShareMemoryAllocator::GetInstance().ReleaseMemoryBlockLocal("testname")); in HWTEST_F()
73 ASSERT_TRUE(ShareMemoryAllocator::GetInstance().CreateMemoryBlockLocal("testname", 1) == in HWTEST_F()
75 ASSERT_FALSE(ShareMemoryAllocator::GetInstance().ReleaseMemoryBlockLocal("testname")); in HWTEST_F()
76 ASSERT_TRUE(ShareMemoryAllocator::GetInstance().CreateMemoryBlockLocal("testname", 4096) != nullptr); // 成功创建 in HWTEST_F()
77 ASSERT_TRUE(ShareMemoryAllocator::GetInstance().CreateMemoryBlockLocal("testname", 4096) == in HWTEST_F()
79 ASSERT_TRUE(ShareMemoryAllocator::GetInstance().ReleaseMemoryBlockLocal("testname")); in HWTEST_F()
80 ASSERT_FALSE(ShareMemoryAllocator::GetInstance().ReleaseMemoryBlockLocal("testname")); in HWTEST_F()
90 ASSERT_TRUE(ShareMemoryAllocator::GetInstance().FindMemoryBlockByName("err") == nullptr); // 查找不存在的内存块返回空 in HWTEST_F()
100 ASSERT_TRUE(ShareMemoryAllocator::GetInstance() in HWTEST_F()
[all...]
/developtools/profiler/host/smartperf/client/client_command/
H A Dsp_profiler_factory.cpp40 OHOS::SmartPerf::CPU::GetInstance().IsFindHap(); in GetProfilerItem()
41 profiler = &CPU::GetInstance(); in GetProfilerItem()
46 profiler = &ProfilerFPS::GetInstance(); in GetProfilerItem()
50 profiler = &GPU::GetInstance(); in GetProfilerItem()
53 profiler = &DDR::GetInstance(); in GetProfilerItem()
56 profiler = &RAM::GetInstance(); in GetProfilerItem()
72 profiler = &Temperature::GetInstance(); in GetProfilerItemContinue()
75 profiler = &Power::GetInstance(); in GetProfilerItemContinue()
78 ProfilerFPS::GetInstance().SetTraceCatch(); in GetProfilerItemContinue()
81 Capture::GetInstance() in GetProfilerItemContinue()
[all...]
/developtools/hiperf/test/unittest/common/native/
H A Ddebug_logger_test.cpp44 DebugLogger::GetInstance()->Reset(); in SetUpTestCase()
49 DebugLogger::GetInstance()->Reset(); in TearDownTestCase()
61 DebugLogger::GetInstance()->exitOnFatal_ = false; in LogLevelTest()
62 DebugLevel oldLevel = DebugLogger::GetInstance()->GetLogLevel(); in LogLevelTest()
63 DebugLogger::GetInstance()->SetLogLevel(testlevel); in LogLevelTest()
83 fflush(DebugLogger::GetInstance()->file_); in LogLevelTest()
84 log = ReadFileToString(DebugLogger::GetInstance()->logPath_); in LogLevelTest()
89 if (testlevel > LEVEL_FATAL or DebugLogger::GetInstance()->enableHilog_ or in LogLevelTest()
90 DebugLogger::GetInstance()->logDisabled_) { in LogLevelTest()
104 DebugLogger::GetInstance() in LogLevelTest()
[all...]
H A Doption_debug_test.cpp44 DebugLogger::GetInstance()->Reset(); in SetUpTestCase()
49 DebugLogger::GetInstance()->Reset(); in TearDownTestCase()
69 DebugLevel oldLevel = DebugLogger::GetInstance()->GetLogLevel(); in LogLevelTest()
84 if (fflush(DebugLogger::GetInstance()->file_) != 0) { in LogLevelTest()
87 std::string log = ReadFileToString(DebugLogger::GetInstance()->logPath_); in LogLevelTest()
97 DebugLogger::GetInstance()->SetLogLevel(oldLevel); in LogLevelTest()
192 DebugLogger::GetInstance()->SetMixLogOutput(false); in HWTEST_F()
224 LogLevelTest({"--logtag", "123", TEST_CMD_NOTHING}, DebugLogger::GetInstance()->GetLogLevel()); in HWTEST_F()
246 DebugLogger::GetInstance()->Disable(false); in HWTEST_F()
258 DebugLogger::GetInstance() in HWTEST_F()
[all...]
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
H A Ddebug_logger_test.cpp55 DebugLogger::GetInstance()->exitOnFatal_ = false; in LogLevelTest()
56 DebugLevel oldLevel = DebugLogger::GetInstance()->GetLogLevel(); in LogLevelTest()
57 DebugLogger::GetInstance()->SetLogLevel(testlevel); in LogLevelTest()
77 fflush(DebugLogger::GetInstance()->file_); in LogLevelTest()
78 log = ReadFileToString(DebugLogger::GetInstance()->logPath_); in LogLevelTest()
83 if (testlevel > LEVEL_FATAL or DebugLogger::GetInstance()->enableHilog_ or in LogLevelTest()
84 DebugLogger::GetInstance()->logDisabled_) { in LogLevelTest()
98 DebugLogger::GetInstance()->SetLogLevel(oldLevel); in LogLevelTest()
99 DebugLogger::GetInstance()->exitOnFatal_ = true; in LogLevelTest()
109 DebugLogger::GetInstance() in HWTEST_F()
[all...]
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
H A Dsub_event_parser_test.cpp65 SubEventParser::GetInstance().idToFunctions_.clear();
70 SubEventParser::GetInstance().idToFunctions_.clear();
81 EXPECT_FALSE(SubEventParser::GetInstance().IsSupport("xxx")); in HWTEST_F()
82 EXPECT_TRUE(SubEventParser::GetInstance().IsSupport("sched_switch")); in HWTEST_F()
98 EXPECT_TRUE(nullptr == SubEventParser::GetInstance().GetParseEventCtx(format.eventId)); in HWTEST_F()
99 EXPECT_TRUE(SubEventParser::GetInstance().SetupEvent(format)); in HWTEST_F()
100 EXPECT_TRUE(nullptr != SubEventParser::GetInstance().GetParseEventCtx(format.eventId)); in HWTEST_F()
116 SubEventParser::GetInstance().schedSwitchCtx = nullptr; in HWTEST_F()
117 EXPECT_TRUE(nullptr == SubEventParser::GetInstance().GetParseEventCtx(format.eventId)); in HWTEST_F()
118 EXPECT_TRUE(SubEventParser::GetInstance() in HWTEST_F()
[all...]
H A Dftrace_fs_ops_test.cpp97 std::string path = FtraceFsOps::GetInstance().GetFtraceRoot(); in HWTEST_F()
109 std::string content = FtraceFsOps::GetInstance().GetKernelSymbols(); in HWTEST_F()
120 std::string content = FtraceFsOps::GetInstance().GetPrintkFormats(); in HWTEST_F()
149 std::string content = FtraceFsOps::GetInstance().GetProcessComm(pid); in HWTEST_F()
160 std::string content = FtraceFsOps::GetInstance().GetProcessComm(-1); in HWTEST_F()
172 std::string content = FtraceFsOps::GetInstance().GetThreadComm(pid, pid); in HWTEST_F()
202 std::string content = FtraceFsOps::GetInstance().GetSavedCmdLines(); in HWTEST_F()
230 std::string content = FtraceFsOps::GetInstance().GetSavedTgids(); in HWTEST_F()
258 if (!FtraceFsOps::GetInstance().IsHmKernel()) { in HWTEST_F()
259 std::string content = FtraceFsOps::GetInstance() in HWTEST_F()
[all...]
H A Dftrace_parser_test.cpp128 EXPECT_TRUE(parser.ParseSavedTgid(FtraceFsOps::GetInstance().GetSavedTgids())); in HWTEST_F()
139 EXPECT_TRUE(parser.ParseSavedCmdlines(FtraceFsOps::GetInstance().GetSavedCmdLines())); in HWTEST_F()
149 if (!FtraceFsOps::GetInstance().IsHmKernel()) { in HWTEST_F()
154 std::string perCpuStatsStr = FtraceFsOps::GetInstance().GetPerCpuStats(0); in HWTEST_F()
168 if (FtraceFsOps::GetInstance().IsHmKernel()) { in HWTEST_F()
169 traceRaw = FtraceFsOps::GetInstance().GetHmRawTracePath(); in HWTEST_F()
171 traceRaw = FtraceFsOps::GetInstance().GetRawTracePath(0); in HWTEST_F()
176 EXPECT_TRUE(FtraceFsOps::GetInstance().ClearTraceBuffer()); in HWTEST_F()
177 EXPECT_TRUE(FtraceFsOps::GetInstance().EnableEvent("sched", "sched_switch")); in HWTEST_F()
178 EXPECT_TRUE(FtraceFsOps::GetInstance() in HWTEST_F()
[all...]
H A Dprintk_formats_parser_test.cpp100 PrintkFormatsParser::GetInstance().printkFormats_.clear();
105 PrintkFormatsParser::GetInstance().printkFormats_.clear();
159 EXPECT_FALSE(PrintkFormatsParser::GetInstance().Parse(input)); in HWTEST_F()
161 std::string symbol = PrintkFormatsParser::GetInstance().GetSymbol(0); in HWTEST_F()
172 EXPECT_TRUE(PrintkFormatsParser::GetInstance().Parse(NORMAL_PRINTK_FORMATS)); in HWTEST_F()
174 for (auto& entry : PrintkFormatsParser::GetInstance().printkFormats_) { in HWTEST_F()
179 std::string symbol = PrintkFormatsParser::GetInstance().GetSymbol(CPU_ON_ADDR); in HWTEST_F()
193 EXPECT_TRUE(PrintkFormatsParser::GetInstance().Parse(input)); in HWTEST_F()
195 std::string symbol = PrintkFormatsParser::GetInstance().GetSymbol(1); in HWTEST_F()
211 EXPECT_TRUE(PrintkFormatsParser::GetInstance() in HWTEST_F()
[all...]
/developtools/profiler/device/services/ipc/test/unittest/
H A Dclient_map_test.cpp42 ASSERT_EQ(ClientMap::GetInstance().PutClientSocket(1, serviceEntry), 1); in HWTEST_F()
43 ClientMap::GetInstance().PutClientSocket(2, serviceTest); in HWTEST_F()
44 ASSERT_EQ(ClientMap::GetInstance().PutClientSocket(2, serviceTest), -1); in HWTEST_F()
45 ASSERT_EQ(ClientMap::GetInstance().AutoRelease(), 1); in HWTEST_F()
46 ClientMap::GetInstance().socketClients_[2]->clientState_ = CLIENT_STAT_THREAD_EXITED; in HWTEST_F()
47 ASSERT_EQ(ClientMap::GetInstance().AutoRelease(), 1); in HWTEST_F()
48 ASSERT_EQ(ClientMap::GetInstance().ClearClientSocket(), 0); in HWTEST_F()
49 ASSERT_EQ(ClientMap::GetInstance().AutoRelease(), 1); in HWTEST_F()
/developtools/profiler/device/services/profiler_service/test/unittest/
H A Dprofiler_capability_manager_test.cpp34 ProfilerCapabilityManager::GetInstance().pluginCapabilities_.clear();
49 EXPECT_TRUE(ProfilerCapabilityManager::GetInstance().AddCapability(cap1)); in HWTEST_F()
59 EXPECT_EQ(ProfilerCapabilityManager::GetInstance().GetCapabilities().size(), 0); in HWTEST_F()
61 std::vector<ProfilerPluginCapability> caps = ProfilerCapabilityManager::GetInstance().GetCapabilities(); in HWTEST_F()
69 EXPECT_TRUE(ProfilerCapabilityManager::GetInstance().AddCapability(cap)); in HWTEST_F()
70 caps = ProfilerCapabilityManager::GetInstance().GetCapabilities(); in HWTEST_F()
82 EXPECT_EQ(ProfilerCapabilityManager::GetInstance().GetCapability("xxx"), nullptr); in HWTEST_F()
89 EXPECT_TRUE(ProfilerCapabilityManager::GetInstance().AddCapability(cap)); in HWTEST_F()
95 auto capPtr = ProfilerCapabilityManager::GetInstance().GetCapability(cap.name()); in HWTEST_F()
111 EXPECT_TRUE(ProfilerCapabilityManager::GetInstance() in HWTEST_F()
[all...]
/developtools/smartperf_host/trace_streamer/test/unittest/rawtrace/
H A Drawtrace_cpu_detail_parse_test.cpp58 EXPECT_TRUE(FtraceEventProcessor::GetInstance().SchedSwitch(*ftraceEvent_, data_.data(), data_.size(), format_)); in HWTEST_F()
71 FtraceEventProcessor::GetInstance().SchedBlockedReason(*ftraceEvent_, data_.data(), data_.size(), format_)); in HWTEST_F()
83 EXPECT_TRUE(FtraceEventProcessor::GetInstance().SchedWakeup(*ftraceEvent_, data_.data(), data_.size(), format_)); in HWTEST_F()
95 EXPECT_TRUE(FtraceEventProcessor::GetInstance().SchedWaking(*ftraceEvent_, data_.data(), data_.size(), format_)); in HWTEST_F()
107 EXPECT_TRUE(FtraceEventProcessor::GetInstance().SchedWakeupNew(*ftraceEvent_, data_.data(), data_.size(), format_)); in HWTEST_F()
120 FtraceEventProcessor::GetInstance().SchedProcessExit(*ftraceEvent_, data_.data(), data_.size(), format_)); in HWTEST_F()
133 FtraceEventProcessor::GetInstance().SchedProcessFree(*ftraceEvent_, data_.data(), data_.size(), format_)); in HWTEST_F()
146 FtraceEventProcessor::GetInstance().BinderTransaction(*ftraceEvent_, data_.data(), data_.size(), format_)); in HWTEST_F()
158 EXPECT_TRUE(FtraceEventProcessor::GetInstance().BinderTransactionReceived(*ftraceEvent_, data_.data(), data_.size(), in HWTEST_F()
171 EXPECT_TRUE(FtraceEventProcessor::GetInstance() in HWTEST_F()
[all...]
/developtools/hiperf/src/
H A Doption_debug.cpp29 DebugLogger::GetInstance()->SetLogLevel(LEVEL_VERBOSE); in OnVerboseLevel()
30 DebugLogger::GetInstance()->Disable(false); in OnVerboseLevel()
43 DebugLogger::GetInstance()->SetLogLevel(LEVEL_MUCH); in OnMuchLevel()
44 DebugLogger::GetInstance()->Disable(false); in OnMuchLevel()
57 DebugLogger::GetInstance()->SetLogLevel(LEVEL_DEBUG); in OnDebugLevel()
58 DebugLogger::GetInstance()->Disable(false); in OnDebugLevel()
71 DebugLogger::GetInstance()->Disable(); in OnNoDebug()
84 DebugLogger::GetInstance()->SetMixLogOutput(true); in OnMixLogOutput()
95 DebugLogger::GetInstance()->SetLogPath(args[0]); in OnLogPath()
110 DebugLogger::GetInstance() in OnLogTag()
[all...]
/developtools/profiler/hiebpf/test/unittest/
H A Dhhlog_test.cpp44 std::string fileName = HHLogger::GetInstance().GetLogFileName(); in HWTEST_F()
55 std::string formatTime = HHLogger::GetInstance().GetFormatTime(); in HWTEST_F()
66 int ret = HHLogger::GetInstance().UpdateTimer(); in HWTEST_F()
77 auto ret = HHLogger::GetInstance().InitLogger(HHLOG_DEBUG, ""); in HWTEST_F()
80 ret = HHLogger::GetInstance().InitLogger(HHLOG_DEBUG, "stdout"); in HWTEST_F()
84 ret = HHLogger::GetInstance().InitLogger(HHLOG_DEBUG, fileName); in HWTEST_F()
/developtools/profiler/host/smartperf/client/client_command/test/unittest/
H A Dsp_task_test.cpp51 SPTask &spTask = SPTask::GetInstance(); in HWTEST_F()
60 SPTask &spTask = SPTask::GetInstance(); in HWTEST_F()
69 SPTask &spTask = SPTask::GetInstance(); in HWTEST_F()
84 SPTask::GetInstance().InitTask(recvStr); in HWTEST_F()
85 templateMap = SPTask::GetInstance().DetectionAndGrab(); in HWTEST_F()
H A Dfps_test.cpp49 FPS::GetInstance().SetFpsCurrentFpsTime(fpsInfoResult); in HWTEST_F()
50 FpsCurrentFpsTime fcf = FPS::GetInstance().GetFpsCurrentFpsTime(); in HWTEST_F()
67 FpsCurrentFpsTime fcf = FPS::GetInstance().GetFpsCurrentFpsTime(); in HWTEST_F()
H A Ddubai_test.cpp41 Dubai &dubai = Dubai::GetInstance(); in HWTEST_F()
51 Dubai &dubai = Dubai::GetInstance(); in HWTEST_F()
61 Dubai &dubai = Dubai::GetInstance(); in HWTEST_F()
H A Dbytrace_test.cpp39 ByTrace &byTrace = ByTrace::GetInstance(); in HWTEST_F()
60 ByTrace &byTrace = ByTrace::GetInstance(); in HWTEST_F()
70 ByTrace &byTrace = ByTrace::GetInstance(); in HWTEST_F()
H A Dddr_test.cpp37 DDR &ddr = DDR::GetInstance(); in HWTEST_F()
38 std::map<std::string, std::string> result = DDR::GetInstance().ItemData(); in HWTEST_F()
/developtools/profiler/device/plugins/ftrace_plugin/src/
H A Dflow_controller.cpp64 ftraceSupported_ = FtraceFsOps::GetInstance().GetFtraceRoot().size() > 0; in FlowController()
93 ksymsParser_->Parse(FtraceFsOps::GetInstance().GetKernelSymbols()); in SetWriter()
106 if (FtraceFsOps::GetInstance().IsHmKernel()) { in CreateRawDataReaders()
107 auto reader = std::make_unique<FtraceDataReader>(FtraceFsOps::GetInstance().GetHmRawTracePath()); in CreateRawDataReaders()
114 auto rawPath = FtraceFsOps::GetInstance().GetRawTracePath(i); in CreateRawDataReaders()
143 if (FtraceFsOps::GetInstance().IsHmKernel()) { in CreatePagedMemoryPool()
155 if (FtraceFsOps::GetInstance().IsHmKernel()) { in CreateRawDataBuffers()
268 FtraceFsOps::GetInstance().ClearTraceBuffer(); in StartCapture()
276 if (!FtraceFsOps::GetInstance().SetSavedCmdLinesSize(savedCmdlinesSize)) { in StartCapture()
281 FtraceFsOps::GetInstance() in StartCapture()
[all...]
/developtools/profiler/device/plugins/ftrace_plugin/include/
H A Dsub_event_parser.h47 static SubEventParser<T>& GetInstance() in GetInstance() function in SubEventParser
138 SubEventParser<FtraceEvent>::GetInstance().RegisterParseFunction(name, std::move(func)); in SubEventParserRegisterar()
143 SubEventParser<FtraceEvent>::GetInstance().UnregisterParseFunction(name_); in ~SubEventParserRegisterar()
156 SubEventParser<Developtools::Profiler::ProtoEncoder::FtraceEvent>::GetInstance().RegisterParseFunction(name, in SubEventParserOptimizeRegisterar()
162 SubEventParser<Developtools::Profiler::ProtoEncoder::FtraceEvent>::GetInstance().UnregisterParseFunction(name_); in ~SubEventParserOptimizeRegisterar()
/developtools/profiler/device/plugins/ftrace_plugin/test/app/
H A Dbusy_workers.cpp74 static Controller& GetInstance() in GetInstance() function
181 Controller::GetInstance().SetSwitchCount(m); in main()
182 Controller::GetInstance().StartWorkers(n); in main()
185 Controller::GetInstance().WaitForDone(); in main()
187 Controller::GetInstance().StopWorkers(n); in main()
/developtools/profiler/device/plugins/native_daemon/src/
H A Ddebug_logger.cpp38 savedDebugLevel_ = DebugLogger::GetInstance()->SetLogLevel(level); in ScopeDebugLevel()
39 savedMixOutput_ = DebugLogger::GetInstance()->SetMixLogOutput(mix); in ScopeDebugLevel()
44 DebugLogger::GetInstance()->SetLogLevel(savedDebugLevel_); in ~ScopeDebugLevel()
45 DebugLogger::GetInstance()->SetMixLogOutput(savedMixOutput_); in ~ScopeDebugLevel()
153 DebugLevel lastLevel = DebugLogger::GetInstance()->debugLevel_; in SetLogLevel()
261 DebugLogger *DebugLogger::GetInstance() in GetInstance() function in OHOS::Developtools::NativeDaemon::DebugLogger
/developtools/profiler/device/plugins/ffrt_profiler/client/include/
H A Dffrt_profiler.h31 static FfrtProfiler* GetInstance();
65 #define FfrtProfilerIns OHOS::Developtools::Profiler::FfrtProfiler::GetInstance()
/developtools/profiler/device/plugins/network_profiler/client/include/
H A Dnetwork_profiler.h38 static NetworkProfiler* GetInstance();
63 #define NetworkProfilerIns OHOS::Developtools::Profiler::NetworkProfiler::GetInstance()

Completed in 16 milliseconds

1234567