| /developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/src/ |
| D | native_memory_profiler_sa_config.cpp | 51 …ofilerSaConfig::Unmarshalling(Parcel& parcel, std::shared_ptr<NativeMemoryProfilerSaConfig> config) in Unmarshalling() argument 53 if (config == nullptr) { in Unmarshalling() 56 READINT32(parcel, config->pid_); in Unmarshalling() 57 READSTRING(parcel, config->filePath_); in Unmarshalling() 58 READUINT32(parcel, config->duration_); in Unmarshalling() 59 READINT32(parcel, config->filterSize_); in Unmarshalling() 60 READUINT32(parcel, config->shareMemorySize_); in Unmarshalling() 61 READSTRING(parcel, config->processName_); in Unmarshalling() 62 READUINT8(parcel, config->maxStackDepth_); in Unmarshalling() 63 READBOOL(parcel, config->mallocDisable_); in Unmarshalling() [all …]
|
| D | native_memory_profiler_sa_client_manager.cpp | 27 …t NativeMemoryProfilerSaClientManager::Start(std::shared_ptr<NativeMemoryProfilerSaConfig>& config) in Start() argument 29 CHECK_NOTNULL(config, RET_ERR, "NativeMemoryProfilerSaClientManager: config is nullptr"); in Start() 30 CHECK_TRUE(CheckConfig(config), RET_ERR, "CheckConfig failed"); in Start() 37 return proxy.Start(config); in Start() 47 auto config = std::make_shared<NativeMemoryProfilerSaConfig>(); in Start() local 48 CHECK_NOTNULL(config, RET_ERR, "NativeMemoryProfilerSaClientManager: config is nullptr"); in Start() 49 config->pid_ = static_cast<int32_t>(pid); in Start() 50 config->duration_ = duration; in Start() 51 config->sampleInterval_ = sampleIntervel; in Start() 53 config->responseLibraryMode_ = true; in Start() [all …]
|
| D | native_memory_profiler_sa_service.cpp | 82 int32_t NativeMemoryProfilerSaService::Start(std::shared_ptr<NativeMemoryProfilerSaConfig>& config) in Start() argument 84 return StartHook(config); in Start() 99 …moryProfilerSaService::DumpData(uint32_t fd, std::shared_ptr<NativeMemoryProfilerSaConfig>& config) in DumpData() argument 101 if (StartHook(config, fd) == RET_ERR) { in DumpData() 111 std::shared_ptr<TaskConfig> config = nullptr; in StopHook() local 114 config = taskIter->second; in StopHook() 117 config = taskIter->second; in StopHook() 119 if (config == nullptr) { in StopHook() 125 config->hookMgr->StopPluginSession({}); in StopHook() 126 config->hookMgr->DestroyPluginSession({}); in StopHook() [all …]
|
| /developtools/profiler/device/plugins/ftrace_plugin/test/unittest/ |
| D | flow_controller_test.cpp | 120 TracePluginConfig config; variable 127 config.add_ftrace_events("sched/sched_switch"); 128 config.set_buffer_size_kb(BUFFER_SIZE_KB); 129 config.set_flush_interval_ms(FLUSH_INTERVAL_MS); 130 config.set_flush_threshold_kb(FLUSH_THRESHOLD_KB); 131 config.set_parse_ksyms(true); 132 config.set_clock("global"); 133 config.set_trace_period_ms(TRACE_PERIOD_MS); 134 config.set_raw_data_prefix("/data/local/tmp/raw_trace_"); 135 std::vector<uint8_t> configData(config.ByteSizeLong()); [all …]
|
| D | ftrace_parser_test.cpp | 52 TracePluginConfig config; in SetUpTestCase() local 60 config.add_ftrace_events("sched/sched_switch"); in SetUpTestCase() 61 config.add_hitrace_categories("ability"); in SetUpTestCase() 62 config.add_hitrace_categories("ace"); in SetUpTestCase() 63 config.set_buffer_size_kb(BUFFER_SIZE_KB); in SetUpTestCase() 64 config.set_flush_interval_ms(FLUSH_INTERVAL_MS); in SetUpTestCase() 65 config.set_flush_threshold_kb(FLUSH_THRESHOLD_KB); in SetUpTestCase() 66 config.set_parse_ksyms(true); in SetUpTestCase() 67 config.set_clock("global"); in SetUpTestCase() 68 config.set_trace_period_ms(TRACE_PERIOD_MS); in SetUpTestCase() [all …]
|
| /developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/test/unittest/ |
| D | native_memory_profiler_sa_service_test.cpp | 54 …std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConf… variable 55 EXPECT_NE(config, nullptr); 59 config->pid_ = pid; 60 config->duration_ = TEST_DURATION; 61 config->filePath_ = "/data/local/tmp/native_hook_test.htrace"; 62 config->offlineSymbolization_ = true; 63 config->shareMemorySize_ = TEST_SHARE_MEMORY_SIZE; 66 EXPECT_EQ(service.Start(config), RET_OK); 68 EXPECT_EQ(service.Stop(config->pid_), RET_OK); 73 EXPECT_EQ(service.DumpData(fd, config), RET_OK); [all …]
|
| D | native_memory_profiler_sa_client_manager_test.cpp | 56 …std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConf… variable 57 EXPECT_NE(config, nullptr); 59 config->duration_ = 100; 61 config->filePath_ = filePath; 62 config->fpUnwind_ = false; 64 EXPECT_EQ(NativeMemoryProfilerSaClientManager::Start(config), RET_ERR); 69 EXPECT_EQ(NativeMemoryProfilerSaClientManager::DumpData(0, config), RET_ERR); 85 …std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConf… variable 86 EXPECT_NE(config, nullptr); 88 config->pid_ = pid; [all …]
|
| /developtools/profiler/device/plugins/native_daemon/ |
| D | native_daemon_client.cpp | 40 …std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConf… in main() local 87 config->pid_ = std::stoi(argv[++i]); in main() 89 config->filePath_ = std::string(argv[++i]); in main() 91 config->duration_ = static_cast<uint32_t>(std::stoi(argv[++i])); in main() 93 config->filterSize_ = std::stoi(argv[++i]); in main() 95 config->shareMemorySize_ = std::stoi(argv[++i]); in main() 97 config->processName_ = std::string(argv[++i]); in main() 99 config->maxStackDepth_ = std::stoi(argv[++i]); in main() 101 config->mallocDisable_ = true; in main() 103 config->mmapDisable_ = true; in main() [all …]
|
| /developtools/profiler/device/plugins/hiperf_plugin/test/unittest/ |
| D | hiperf_plugin_unittest.cpp | 81 HiperfPluginConfig config; variable 82 config.set_outfile_name(DEFAULT_OUT_PATH); 83 config.set_record_args("-a -c 0 -d 2"); 84 int size = config.ByteSizeLong(); 87 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 101 HiperfPluginConfig config; variable 102 config.set_outfile_name(DEFAULT_OUT_PATH); 103 std::vector<uint8_t> buffer(config.ByteSizeLong()); 104 ASSERT_TRUE(config.SerializeToArray(buffer.data(), buffer.size())) << "proto serialize FAILED!"; 111 HiperfPluginConfig config; variable [all …]
|
| /developtools/profiler/device/plugins/bytrace_plugin/src/ |
| D | run_test.cpp | 28 BytracePluginConfig config; in main() local 29 config.set_outfile_name("/data/local/tmp/bytrace.txt"); in main() 30 config.set_clock("boot"); in main() 31 config.set_time(TRACE_TIME); in main() 32 config.set_buffe_size(BUFFE_SIZE); in main() 33 config.add_categories("sched"); in main() 34 config.add_categories("freq"); in main() 35 config.add_categories("idle"); in main() 36 config.add_categories("workq"); in main() 38 std::vector<char> buffer(config.ByteSizeLong()); in main() [all …]
|
| D | bytrace_module.cpp | 46 void ParseConfig(const BytracePluginConfig& config) in ParseConfig() argument 48 if (config.buffe_size() != 0) { in ParseConfig() 49 g_bytraceInfo->buffSize = config.buffe_size(); in ParseConfig() 51 g_bytraceInfo->time = config.time(); in ParseConfig() 52 g_bytraceInfo->isRoot = config.is_root(); in ParseConfig() 53 if (!config.clock().empty()) { in ParseConfig() 54 g_bytraceInfo->clockType = config.clock(); in ParseConfig() 56 if (!config.outfile_name().empty()) { in ParseConfig() 57 g_bytraceInfo->outFile = config.outfile_name(); in ParseConfig() 59 if (!config.categories().empty()) { in ParseConfig() [all …]
|
| /developtools/ace_ets2bundle/compiler/ |
| D | webpack.config.js | 48 function initConfig(config) { argument 50 Object.assign(config, { 124 setModuleJsonConfigRule(config); 126 config.cache = { 133 config.resolve.modules.push(...getResolveModules(projectPath, true)); 134 existsPackageJson(config, path.resolve(projectPath, '../../../../../package.json'), 137 config.resolve.modules.push(...getResolveModules(projectPath, false)); 138 existsPackageJson(config, path.resolve(projectPath, '../../../../package.json'), 175 function setModuleJsonConfigRule(config) { argument 185 config.module.rules.push(jsonRule); [all …]
|
| /developtools/smartperf_host/ide/src/trace/component/ |
| D | SpFlags.ts | 145 private createCustomDiv(config: FlagConfigItem, configDiv: HTMLDivElement): void { 149 titleLabel.textContent = config.title; 153 configSelect.setAttribute('title', config.title); 154 config.switchOptions.forEach((optionItem) => { 169 description.textContent = config.describeContent; 178 allConfig.forEach((config) => { 180 this.createCustomDiv(config, configDiv); 181 if (config.title === 'AnimationAnalysis') { 188 deviceWidthEl.value = <string>config.addInfo!.physicalWidth; 203 deviceHeightEl.value = <string>config.addInfo!.physicalHeight; [all …]
|
| /developtools/integration_verification/tools/fotff/pkg/gitee_common/ |
| D | build.go | 35 func (m *Manager) Build(config BuildConfig, ctx context.Context) error { 36 if m.PkgAvailable(config) { 39 logrus.Infof("%s is not available", config.Pkg) 40 err := m.BuildNoRetry(config, false, ctx) 44 logrus.Errorf("build pkg %s err: %v", config.Pkg, err) 45 logrus.Infof("rm out and build pkg %s again...", config.Pkg) 46 err = m.BuildNoRetry(config, true, ctx) 50 logrus.Errorf("build pkg %s err: %v", config.Pkg, err) 55 func (m *Manager) PkgAvailable(config BuildConfig) bool { 56 for _, img := range config.ImgList { [all …]
|
| /developtools/profiler/device/plugins/hidump_plugin/test/unittest/ |
| D | hidump_plugin_unittest.cpp | 67 bool PluginStart(HidumpPlugin& plugin, HidumpConfig& config) in PluginStart() argument 70 int size = config.ByteSizeLong(); in PluginStart() 72 int ret = config.SerializeToArray(configData.data(), configData.size()); in PluginStart() 99 HidumpConfig config; variable 100 config.set_report_fps(true); 101 int size = config.ByteSizeLong(); 104 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 122 HidumpConfig config; variable 126 config.set_report_fps(true); 127 plugin.SetConfig(config); [all …]
|
| /developtools/ace_js2bundle/ace-loader/ |
| D | webpack.rich.config.js | 166 let config = { variable 242 config.plugins.push(new GenAbcPlugin(process.env.buildPath, arkDir, nodeJs, workerFile, 245 config.output.path = path.join(process.env.cachePath, "releaseAssets", 247 process.env.configOutput = config.output.path; 254 …config.plugins.push(new GenBinPlugin(process.env.buildPath, path.join(__dirname, 'bin', workerFile… 260 function existsPackageJson(config, rootPackageJsonPath, modulePackageJsonPath) { argument 261 if (config.cache) { 262 config.cache.buildDependencies = { 263 config: [] property 266 config.cache.buildDependencies.config.push(rootPackageJsonPath); [all …]
|
| /developtools/ace_js2bundle/ace-loader/src/ |
| D | loader-gen.js | 41 function getLoaderString (type, config) { argument 42 config = config || {} 43 const customLoader = loadCustomLoader(config) 49 return elementLoaderString(loaders, config) 51 return templateLoaderString(loaders, config, customLoader) 53 return styleLoaderString(loaders, config, customLoader) 55 return scriptLoaderString(loaders, config, customLoader) 57 return configLoaderString(loaders, config) 59 return dataLoaderString(loaders, config) 63 function loadCustomLoader (config) { argument [all …]
|
| /developtools/hiperf/src/ |
| D | report.cpp | 111 for (auto &config : configs_) { in StatisticsRecords() local 113 size_t totalReportCount = config.reportItems_.size(); in StatisticsRecords() 116 auto last = std::unique(config.reportItems_.begin(), config.reportItems_.end(), in StatisticsRecords() 119 config.reportItems_.erase(last, config.reportItems_.end()); in StatisticsRecords() 121 duplicates = totalReportCount - config.reportItems_.size(); in StatisticsRecords() 123 config.reportItems_.size()); in StatisticsRecords() 130 for (auto &config : configs_) { in FilterDisplayRecords() local 132 size_t totalReportCount = config.reportItems_.size(); in FilterDisplayRecords() 136 auto itemIt = config.reportItems_.begin(); in FilterDisplayRecords() 137 while (itemIt != config.reportItems_.end()) { in FilterDisplayRecords() [all …]
|
| /developtools/profiler/device/plugins/network_plugin/test/unittest/ |
| D | network_plugin_test.cpp | 89 bool SetConfig(std::vector<int> pidList, NetworkConfig& config) in SetConfig() argument 94 config.add_pid(pidList.at(i)); in SetConfig() 99 bool PluginStub(NetworkPlugin& plugin, NetworkDatas& networkData, NetworkConfig& config) in PluginStub() argument 102 int configSize = config.ByteSizeLong(); in PluginStub() 104 int ret = config.SerializeToArray(configData.data(), configData.size()); in PluginStub() 158 NetworkConfig config; variable 159 EXPECT_TRUE(SetConfig(pidList, config)); 160 ASSERT_TRUE(PluginStub(plugin, networkData, config)); 186 NetworkConfig config; variable 187 EXPECT_TRUE(SetConfig(pidList, config)); [all …]
|
| /developtools/profiler/device/cmds/test/unittest/ |
| D | parse_plugin_config_test.cpp | 32 void CreateCommand(string ConfigName, ParsePluginConfig &parseConfig, string &config) const in CreateCommand() 48 config = parseConfig.GetPluginsConfig(cmdStr); in CreateCommand() 51 ProfilerPluginConfig GetProfilerPluginConfig(string config) in GetProfilerPluginConfig() argument 55 if (!google::protobuf::TextFormat::ParseFromString(config, request.get())) { in GetProfilerPluginConfig() 56 printf("%s\n", config.c_str()); in GetProfilerPluginConfig() 72 std::string config; variable 90 CreateCommand(pluginName, parseConfig, config); 91 auto profilerConfig = GetProfilerPluginConfig(config);
|
| /developtools/smartperf_host/ide/src/trace/component/setting/ |
| D | SpRecordPerf.ts | 229 perfConfigList.forEach((config) => { 231 if (config.hidden) { 240 recordPerfTitle.textContent = config.title; 243 recordPerfDes.textContent = config.des; 246 switch (config.type) { 248 this.configTypeBySelectMultiple(config, recordPerfDiv); 251 this.configTypeByLitSlider(config, recordPerfDiv); 254 this.configTypeByMmapLitSlider(config, recordPerfDiv); 257 this.configTypeByInput(config, recordPerfDiv); 260 this.configTypeBySelect(config, recordPerfDiv); [all …]
|
| /developtools/hdc/hdc_rust/src/host/ |
| D | auth.rs | 18 use crate::config::*; 20 use hdc::config; 21 use hdc::config::TaskMessage; 44 version: config::get_version(), in handshake_with_daemon() 51 if msg.command == config::HdcCommand::KernelHandshake { in handshake_with_daemon() 56 if recv.banner != config::HANDSHAKE_MESSAGE { in handshake_with_daemon() 60 if recv.auth_type == config::AuthType::OK as u8 { in handshake_with_daemon() 62 } else if recv.auth_type == config::AuthType::Publickey as u8 { in handshake_with_daemon() 64 handshake.auth_type = config::AuthType::Publickey as u8; in handshake_with_daemon() 72 handshake.auth_type = config::AuthType::Signature as u8; in handshake_with_daemon() [all …]
|
| /developtools/profiler/device/plugins/hisysevent_plugin/test/unittest/ |
| D | hisysevent_plugin_unittest.cpp | 74 bool PluginStart(HisyseventPlugin& plugin, HisyseventConfig& config) in PluginStart() argument 77 int size = config.ByteSizeLong(); in PluginStart() 79 int ret = config.SerializeToArray(configData.data(), configData.size()); in PluginStart() 99 HisyseventConfig config; variable 105 config.set_msg("Hisysevent Config."); 109 EXPECT_TRUE(PluginStart(plugin, config)); 145 HisyseventConfig config; variable 146 config.set_msg("Hisysevent Config."); 147 int size = config.ByteSizeLong(); 150 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); [all …]
|
| /developtools/ace_ets2bundle/compiler/src/fast_build/system_api/ |
| D | api_check_utils.ts | 24 export function configureSyscapInfo(config: any): void { 25 config.deviceTypesMessage = config.deviceTypes.join(','); 30 config.deviceTypes.forEach((deviceType: string) => { 33 if (config.runtimeOS !== RUNTIME_OS_OH) { 34 collectExternalSyscapInfos(config.externalApiPaths, config.deviceTypes, deviceInfoMap); 52 if (config.deviceTypes.length === 1 || syscaps.length === 1) { 57 config.syscapIntersectionSet = new Set(syscapIntersection); 58 config.syscapUnionSet = new Set(allSyscaps);
|
| /developtools/profiler/device/plugins/hilog_plugin/test/unittest/ |
| D | hilog_plugin_unittest.cpp | 78 bool PluginStart(HilogPlugin& plugin, HilogConfig& config) in PluginStart() argument 81 int size = config.ByteSizeLong(); in PluginStart() 83 int ret = config.SerializeToArray(configData.data(), configData.size()); in PluginStart() 169 HilogConfig config; variable 172 config.set_log_level(Level::LEVEL_UNSPECIFIED); 173 plugin.SetConfig(config); 184 HilogConfig config; variable 187 config.set_log_level(Level::ERROR); 188 plugin.SetConfig(config); 199 HilogConfig config; variable [all …]
|