Searched refs:protoConfig (Results 1 – 8 of 8) sorted by relevance
/developtools/profiler/device/plugins/memory_plugin/test/unittest/ |
D | memory_data_plugin_unittest.cpp | 106 void SetPluginProcessConfig(std::vector<int> processList, MemoryConfig& protoConfig) in SetPluginProcessConfig() argument 110 protoConfig.set_report_process_mem_info(true); in SetPluginProcessConfig() 111 protoConfig.set_report_app_mem_info(true); in SetPluginProcessConfig() 113 protoConfig.add_pid(processList.at(i)); in SetPluginProcessConfig() 117 protoConfig.set_report_process_tree(true); in SetPluginProcessConfig() 121 void SetPluginSysMemConfig(MemoryConfig &protoConfig) in SetPluginSysMemConfig() argument 123 protoConfig.set_report_sysmem_mem_info(true); in SetPluginSysMemConfig() 125 protoConfig.add_sys_meminfo_counters(SysMeminfoType::PMEM_MEM_TOTAL); in SetPluginSysMemConfig() 126 protoConfig.add_sys_meminfo_counters(SysMeminfoType::PMEM_MEM_FREE); in SetPluginSysMemConfig() 127 protoConfig.add_sys_meminfo_counters(SysMeminfoType::PMEM_MEM_AVAILABLE); in SetPluginSysMemConfig() [all …]
|
/developtools/profiler/device/plugins/diskio_plugin/test/unittest/ |
D | diskio_data_plugin_unittest.cpp | 87 DiskioConfig protoConfig; in PluginDiskioInfoStub() local 88 std::vector<uint8_t> configData(protoConfig.ByteSizeLong()); in PluginDiskioInfoStub() 89 int ret = protoConfig.SerializeToArray(configData.data(), configData.size()); in PluginDiskioInfoStub() 180 DiskioConfig protoConfig; variable 181 int configLength = protoConfig.ByteSizeLong(); 184 EXPECT_TRUE(protoConfig.SerializeToArray(configBuffer.data(), configLength)); 195 EXPECT_TRUE(protoConfig.SerializeToArray(configBuffer2.data(), configLength));
|
/developtools/profiler/interfaces/kits/test/unittest/ |
D | plugin_module_api_test.cpp | 67 bool PollPluginStub(MemoryDataPlugin& plugin, MemoryConfig& protoConfig, MemoryData& protoData); 68 bool StreamPluginStub(StreamPlugin& plugin, StreamConfig& protoConfig, StreamData& protoData); 174 SampleConfig protoConfig; in SetSampleConfig() local 175 protoConfig.set_pid(1); in SetSampleConfig() 177 protoConfig.SerializeToArray(configData.data(), configData.size()); in SetSampleConfig() 178 configSize = protoConfig.ByteSizeLong(); in SetSampleConfig() 183 MemoryConfig protoConfig; in SetMemoryConfig() local 184 protoConfig.set_report_process_mem_info(true); in SetMemoryConfig() 185 protoConfig.add_pid(1); in SetMemoryConfig() 187 protoConfig.SerializeToArray(configData.data(), configSize); in SetMemoryConfig() [all …]
|
/developtools/profiler/device/plugins/cpu_plugin/src/ |
D | test_main.cpp | 86 CpuConfig protoConfig; in main() local 104 protoConfig.set_pid(pid); in main() 105 int configLength = protoConfig.ByteSizeLong(); in main() 107 protoConfig.SerializeToArray(configBuffer.data(), configLength); in main()
|
/developtools/profiler/device/plugins/diskio_plugin/src/ |
D | test_main.cpp | 69 DiskioConfig protoConfig; in main() local 82 int configLength = protoConfig.ByteSizeLong(); in main() 84 int ret = protoConfig.SerializeToArray(configBuffer.data(), configBuffer.size()); in main()
|
/developtools/profiler/device/plugins/cpu_plugin/test/unittest/ |
D | cpu_data_plugin_unittest.cpp | 199 CpuConfig protoConfig; in PluginCpuinfoStub() local 200 protoConfig.set_pid(pid); in PluginCpuinfoStub() 202 protoConfig.set_report_process_info(true); in PluginCpuinfoStub() 206 std::vector<uint8_t> configData(protoConfig.ByteSizeLong()); in PluginCpuinfoStub() 207 int ret = protoConfig.SerializeToArray(configData.data(), configData.size()); in PluginCpuinfoStub() 406 CpuConfig protoConfig; variable 407 protoConfig.set_pid(TEST_PID); 408 int configLength = protoConfig.ByteSizeLong(); 411 EXPECT_TRUE(protoConfig.SerializeToArray(configBuffer.data(), configLength));
|
/developtools/profiler/device/plugins/process_plugin/test/unittest/ |
D | process_plugin_unittest.cpp | 130 bool PluginCpuinfoStub(ProcessData& processData, ProcessConfig& protoConfig, bool unusualBuff) in PluginCpuinfoStub() argument 134 std::vector<uint8_t> configData(protoConfig.ByteSizeLong()); in PluginCpuinfoStub() 135 int ret = protoConfig.SerializeToArray(configData.data(), configData.size()); in PluginCpuinfoStub()
|
/developtools/profiler/device/services/profiler_service/test/unittest/ |
D | profiler_service_performance_test.cpp | 369 CpuConfig protoConfig; in StartActiveProcess() local 390 protoConfig.set_pid(getpid()); in StartActiveProcess() 391 int configLength = protoConfig.ByteSizeLong(); in StartActiveProcess() 393 protoConfig.SerializeToArray(configBuffer.data(), configLength); in StartActiveProcess()
|