Home
last modified time | relevance | path

Searched refs:config (Results 1 - 25 of 157) sorted by relevance

1234567

/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/src/
H A Dnative_memory_profiler_sa_config.cpp57 bool NativeMemoryProfilerSaConfig::Unmarshalling(Parcel& parcel, std::shared_ptr<NativeMemoryProfilerSaConfig> config) in Unmarshalling() argument
59 if (config == nullptr) { in Unmarshalling()
62 READINT32(parcel, config->pid_); in Unmarshalling()
63 READSTRING(parcel, config->filePath_); in Unmarshalling()
64 READUINT32(parcel, config->duration_); in Unmarshalling()
65 READINT32(parcel, config->filterSize_); in Unmarshalling()
66 READUINT32(parcel, config->shareMemorySize_); in Unmarshalling()
67 READSTRING(parcel, config->processName_); in Unmarshalling()
68 READUINT8(parcel, config->maxStackDepth_); in Unmarshalling()
69 READBOOL(parcel, config in Unmarshalling()
97 PrintConfig(std::shared_ptr<NativeMemoryProfilerSaConfig>& config) PrintConfig() argument
[all...]
H A Dnative_memory_profiler_sa_client_manager.cpp28 int32_t NativeMemoryProfilerSaClientManager::Start(std::shared_ptr<NativeMemoryProfilerSaConfig>& config) in Start() argument
30 CHECK_NOTNULL(config, RET_ERR, "NativeMemoryProfilerSaClientManager: config is nullptr"); in Start()
31 CHECK_TRUE(CheckConfig(config), RET_ERR, "CheckConfig failed"); in Start()
38 return proxy.Start(config); in Start()
48 auto config = std::make_shared<NativeMemoryProfilerSaConfig>(); in Start() local
49 CHECK_NOTNULL(config, RET_ERR, "NativeMemoryProfilerSaClientManager: config is nullptr"); in Start()
50 config->pid_ = static_cast<int32_t>(pid); in Start()
51 config in Start()
85 DumpData(uint32_t fd, std::shared_ptr<NativeMemoryProfilerSaConfig>& config) DumpData() argument
109 CheckConfig(const std::shared_ptr<NativeMemoryProfilerSaConfig>& config) CheckConfig() argument
127 std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConfig>(); GetMallocStats() local
[all...]
H A Dnative_memory_profiler_sa_service.cpp94 int32_t NativeMemoryProfilerSaService::Start(std::shared_ptr<NativeMemoryProfilerSaConfig>& config) in Start() argument
96 return StartHook(config); in Start()
111 int32_t NativeMemoryProfilerSaService::DumpData(uint32_t fd, std::shared_ptr<NativeMemoryProfilerSaConfig>& config) in DumpData() argument
113 if (config->printNmd_) { in DumpData()
115 nmdPidType_[config->nmdPid_] = std::make_pair(fd, config->nmdType_); in DumpData()
118 if (StartHook(config, fd) == RET_ERR) { in DumpData()
132 std::shared_ptr<TaskConfig> config = nullptr; in StopHook() local
135 config = taskIter->second; in StopHook()
138 config in StopHook()
169 StartHook(std::shared_ptr<NativeMemoryProfilerSaConfig>& config, uint32_t fd) StartHook() argument
254 CheckConfig(std::shared_ptr<NativeMemoryProfilerSaConfig>& config, uint32_t fd) CheckConfig() argument
[all...]
H A Dnative_memory_profiler_sa_stub.cpp55 std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConfig>(); in StubStart() local
56 if (!NativeMemoryProfilerSaConfig::Unmarshalling(data, config)) { in StubStart()
59 return Start(config); in StubStart()
78 std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConfig>(); in StubDumpFile() local
79 if (!NativeMemoryProfilerSaConfig::Unmarshalling(data, config)) { in StubDumpFile()
82 if (config->pid_ > 0) { in StubDumpFile()
84 std::string pidPath = "/proc/" + std::to_string(config->pid_) + "/status"; in StubDumpFile()
91 return DumpData(fd, config); in StubDumpFile()
/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/test/unittest/
H A Dnative_memory_profiler_sa_service_test.cpp54 std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConfig>(); in HWTEST_F()
55 EXPECT_NE(config, nullptr); in HWTEST_F()
59 config->pid_ = pid; in HWTEST_F()
60 config->duration_ = TEST_DURATION; in HWTEST_F()
61 config->filePath_ = "/data/local/tmp/native_hook_test.htrace"; in HWTEST_F()
62 config->offlineSymbolization_ = true; in HWTEST_F()
63 config->shareMemorySize_ = TEST_SHARE_MEMORY_SIZE; in HWTEST_F()
66 EXPECT_EQ(service.Start(config), RET_OK); in HWTEST_F()
68 EXPECT_EQ(service.Stop(config->pid_), RET_OK); in HWTEST_F()
73 EXPECT_EQ(service.DumpData(fd, config), RET_O in HWTEST_F()
[all...]
H A Dnative_memory_profiler_sa_client_manager_test.cpp61 std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConfig>(); in HWTEST_F() local
62 EXPECT_NE(config, nullptr); in HWTEST_F()
64 config->duration_ = 100; in HWTEST_F()
66 config->filePath_ = filePath; in HWTEST_F()
67 config->fpUnwind_ = false; in HWTEST_F()
69 EXPECT_EQ(NativeMemoryProfilerSaClientManager::Start(config), RET_ERR); in HWTEST_F()
74 EXPECT_EQ(NativeMemoryProfilerSaClientManager::DumpData(0, config), RET_ERR); in HWTEST_F()
90 std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConfig>(); in HWTEST_F() local
91 EXPECT_NE(config, nullptr); in HWTEST_F()
93 config in HWTEST_F()
[all...]
H A Dnative_memory_profiler_sa_config_test.cpp42 std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConfig>(); in HWTEST_F()
43 EXPECT_NE(config, nullptr); in HWTEST_F()
45 config->duration_ = 100; in HWTEST_F()
47 config->filePath_ = filePath; in HWTEST_F()
48 config->fpUnwind_ = false; in HWTEST_F()
51 EXPECT_EQ(config->Marshalling(parcel), true); in HWTEST_F()
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
H A Dflow_controller_test.cpp114 TracePluginConfig config; in HWTEST_F() local
120 // set config in HWTEST_F()
121 config.add_ftrace_events("sched/sched_switch"); in HWTEST_F()
122 config.set_buffer_size_kb(BUFFER_SIZE_KB); in HWTEST_F()
123 config.set_flush_interval_ms(FLUSH_INTERVAL_MS); in HWTEST_F()
124 config.set_flush_threshold_kb(FLUSH_THRESHOLD_KB); in HWTEST_F()
125 config.set_parse_ksyms(true); in HWTEST_F()
126 config.set_clock("global"); in HWTEST_F()
127 config.set_trace_period_ms(TRACE_PERIOD_MS); in HWTEST_F()
128 config in HWTEST_F()
143 TracePluginConfig config; HWTEST_F() local
165 TracePluginConfig config; HWTEST_F() local
187 TracePluginConfig config; HWTEST_F() local
211 TracePluginConfig config; HWTEST_F() local
235 TracePluginConfig config; HWTEST_F() local
282 TracePluginConfig config; HWTEST_F() local
318 TracePluginConfig config; HWTEST_F() local
351 TracePluginConfig config; HWTEST_F() local
[all...]
H A Dftrace_parser_test.cpp51 TracePluginConfig config; in SetUpTestCase() local
58 // set config in SetUpTestCase()
59 config.add_ftrace_events("sched/sched_switch"); in SetUpTestCase()
60 config.add_hitrace_categories("ability"); in SetUpTestCase()
61 config.add_hitrace_categories("ace"); in SetUpTestCase()
62 config.set_buffer_size_kb(BUFFER_SIZE_KB); in SetUpTestCase()
63 config.set_flush_interval_ms(FLUSH_INTERVAL_MS); in SetUpTestCase()
64 config.set_flush_threshold_kb(FLUSH_THRESHOLD_KB); in SetUpTestCase()
65 config.set_parse_ksyms(true); in SetUpTestCase()
66 config in SetUpTestCase()
[all...]
/developtools/profiler/device/plugins/native_daemon/
H A Dnative_daemon_client.cpp40 std::shared_ptr<NativeMemoryProfilerSaConfig> config = std::make_shared<NativeMemoryProfilerSaConfig>(); in main() local
89 config->pid_ = std::stoi(argv[++i]); in main()
91 config->filePath_ = std::string(argv[++i]); in main()
93 config->duration_ = static_cast<uint32_t>(std::stoi(argv[++i])); in main()
95 config->filterSize_ = std::stoi(argv[++i]); in main()
97 config->shareMemorySize_ = std::stoi(argv[++i]); in main()
99 config->processName_ = std::string(argv[++i]); in main()
101 config->maxStackDepth_ = std::stoi(argv[++i]); in main()
103 config->mallocDisable_ = true; in main()
105 config in main()
[all...]
/developtools/profiler/device/plugins/hiperf_plugin/test/unittest/
H A Dhiperf_plugin_unittest.cpp75 // set config in HWTEST_F()
76 HiperfPluginConfig config; in HWTEST_F() local
77 config.set_outfile_name(DEFAULT_OUT_PATH); in HWTEST_F()
78 config.set_record_args("-a -c 0 -d 2"); in HWTEST_F()
79 int size = config.ByteSizeLong(); in HWTEST_F()
82 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); in HWTEST_F()
96 HiperfPluginConfig config; in HWTEST_F() local
97 config.set_outfile_name(DEFAULT_OUT_PATH); in HWTEST_F()
98 std::vector<uint8_t> buffer(config.ByteSizeLong()); in HWTEST_F()
99 ASSERT_TRUE(config in HWTEST_F()
106 HiperfPluginConfig config; HWTEST_F() local
119 HiperfPluginConfig config; HWTEST_F() local
134 HiperfPluginConfig config; HWTEST_F() local
149 HiperfPluginConfig config; HWTEST_F() local
180 HiperfPluginConfig config; HWTEST_F() local
[all...]
/developtools/profiler/device/plugins/hidump_plugin/test/unittest/
H A Dhidump_plugin_unittest.cpp60 bool PluginStart(HidumpPlugin& plugin, HidumpConfig& config) in PluginStart() argument
63 int size = config.ByteSizeLong(); in PluginStart()
65 int ret = config.SerializeToArray(configData.data(), configData.size()); in PluginStart()
91 // set config in HWTEST_F()
92 HidumpConfig config; in HWTEST_F() local
93 config.set_report_fps(true); in HWTEST_F()
94 int size = config.ByteSizeLong(); in HWTEST_F()
97 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); in HWTEST_F()
115 HidumpConfig config; in HWTEST_F() local
119 config in HWTEST_F()
138 HidumpConfig config; HWTEST_F() local
160 HidumpConfig config; HWTEST_F() local
179 HidumpConfig config; HWTEST_F() local
199 HidumpConfig config; HWTEST_F() local
[all...]
/developtools/profiler/device/plugins/bytrace_plugin/src/
H A Drun_test.cpp28 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 in main()
[all...]
H A Dbytrace_module.cpp46 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 in ParseConfig()
123 BytracePluginConfig config; BytracePluginSessionStart() local
[all...]
/developtools/ace_ets2bundle/compiler/
H A Dwebpack.config.js48 function initConfig(config) {
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) {
185 config
[all...]
/developtools/integration_verification/tools/fotff/pkg/gitee_common/
H A Dbuild.go35 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
[all...]
/developtools/profiler/hidebug/interfaces/js/kits/napi/util/
H A Dhiappevent_util.cpp70 ReportConfig config; in InitProcessor()
71 config.name = "ha_app_event"; in InitProcessor()
72 config.appId = "com_huawei_hmos_sdk_ocg"; in InitProcessor()
73 config.routeInfo = "AUTO"; in InitProcessor()
75 config.triggerCond.timeout = triggerTimeOut; in InitProcessor()
77 config.triggerCond.row = triggerRow; in InitProcessor()
78 config.eventConfigs.clear(); in InitProcessor()
79 config.eventConfigs.push_back({ in InitProcessor()
84 config.eventConfigs.push_back({ in InitProcessor()
89 config in InitProcessor()
[all...]
/developtools/ace_js2bundle/ace-loader/src/
H A Dloader-gen.js41 function getLoaderString (type, config) {
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)
56 case 'config':
57 return configLoaderString(loaders, config)
[all...]
/developtools/profiler/device/plugins/network_plugin/test/unittest/
H A Dnetwork_plugin_test.cpp83 bool SetConfig(std::vector<int> pidList, NetworkConfig& config) in SetConfig() argument
88 config.add_pid(pidList.at(i)); in SetConfig()
93 bool PluginStub(NetworkPlugin& plugin, NetworkDatas& networkData, NetworkConfig& config) in PluginStub() argument
96 int configSize = config.ByteSizeLong(); in PluginStub()
98 int ret = config.SerializeToArray(configData.data(), configData.size()); in PluginStub()
152 NetworkConfig config; in HWTEST_F() local
153 EXPECT_TRUE(SetConfig(pidList, config)); in HWTEST_F()
154 ASSERT_TRUE(PluginStub(plugin, networkData, config)); in HWTEST_F()
180 NetworkConfig config; in HWTEST_F() local
181 EXPECT_TRUE(SetConfig(pidList, config)); in HWTEST_F()
209 NetworkConfig config; HWTEST_F() local
256 NetworkConfig config; HWTEST_F() local
285 NetworkConfig config; HWTEST_F() local
317 NetworkConfig config; HWTEST_F() local
[all...]
/developtools/hiperf/src/
H A Dreport.cpp120 for (auto &config : configs_) { in StatisticsRecords()
122 size_t totalReportCount = config.reportItems_.size(); in StatisticsRecords()
125 auto last = std::unique(config.reportItems_.begin(), config.reportItems_.end(), in StatisticsRecords()
130 config.reportItems_.erase(last, config.reportItems_.end()); in StatisticsRecords()
132 duplicates = totalReportCount - config.reportItems_.size(); in StatisticsRecords()
134 config.reportItems_.size()); in StatisticsRecords()
141 for (auto &config : configs_) { in FilterDisplayRecords()
143 size_t totalReportCount = config in FilterDisplayRecords()
335 OutputStdStatistics(ReportEventConfigItem &config) OutputStdStatistics() argument
355 OutputStdHead(ReportEventConfigItem &config, bool diffMode) OutputStdHead() argument
[all...]
/developtools/ace_js2bundle/ace-loader/
H A Dwebpack.rich.config.js166 let config = {
251 config.plugins.push(new GenAbcPlugin(process.env.buildPath, arkDir, nodeJs, workerFile,
254 config.output.path = path.join(process.env.cachePath, "releaseAssets",
256 process.env.configOutput = config.output.path;
263 config.plugins.push(new GenBinPlugin(process.env.buildPath, path.join(__dirname, 'bin', workerFile)))
269 function existsPackageJson(config, rootPackageJsonPath, modulePackageJsonPath) {
270 if (config.cache) {
271 config.cache.buildDependencies = {
272 config: []
275 config
[all...]
/developtools/profiler/device/cmds/test/unittest/
H A Dparse_plugin_config_test.cpp30 void CreateCommand(string ConfigName, ParsePluginConfig &parseConfig, string &config) const in CreateCommand()
46 config = parseConfig.GetPluginsConfig(cmdStr); in CreateCommand()
49 ProfilerPluginConfig GetProfilerPluginConfig(string config) in GetProfilerPluginConfig() argument
53 if (!google::protobuf::TextFormat::ParseFromString(config, request.get())) { in GetProfilerPluginConfig()
54 printf("%s\n", config.c_str()); in GetProfilerPluginConfig()
64 * @tc.desc: Test parse plugin config.
70 std::string config; in HWTEST_F() local
87 CreateCommand(pluginName, parseConfig, config); in HWTEST_F()
88 auto profilerConfig = GetProfilerPluginConfig(config); in HWTEST_F()
/developtools/profiler/device/plugins/hisysevent_plugin/test/unittest/
H A Dhisysevent_plugin_unittest.cpp68 bool PluginStart(HisyseventPlugin& plugin, HisyseventConfig& config) in PluginStart() argument
71 int size = config.ByteSizeLong(); in PluginStart()
73 int ret = config.SerializeToArray(configData.data(), configData.size()); in PluginStart()
93 HisyseventConfig config; in HWTEST_F() local
98 // set config in HWTEST_F()
99 config.set_msg("Hisysevent Config."); in HWTEST_F()
103 EXPECT_TRUE(PluginStart(plugin, config)); in HWTEST_F()
138 // set config in HWTEST_F()
139 HisyseventConfig config; in HWTEST_F() local
140 config in HWTEST_F()
175 HisyseventConfig config; HWTEST_F() local
211 HisyseventConfig config; HWTEST_F() local
[all...]
/developtools/profiler/device/plugins/hilog_plugin/test/unittest/
H A Dhilog_plugin_unittest.cpp72 bool PluginStart(HilogPlugin& plugin, HilogConfig& config) in PluginStart() argument
75 int size = config.ByteSizeLong(); in PluginStart()
77 int ret = config.SerializeToArray(configData.data(), configData.size()); in PluginStart()
163 HilogConfig config; in HWTEST_F() local
166 config.set_log_level(Level::LEVEL_UNSPECIFIED); in HWTEST_F()
167 plugin.SetConfig(config); in HWTEST_F()
178 HilogConfig config; in HWTEST_F() local
181 config.set_log_level(Level::ERROR); in HWTEST_F()
182 plugin.SetConfig(config); in HWTEST_F()
193 HilogConfig config; in HWTEST_F() local
208 HilogConfig config; HWTEST_F() local
223 HilogConfig config; HWTEST_F() local
238 HilogConfig config; HWTEST_F() local
261 HilogConfig config; HWTEST_F() local
284 HilogConfig config; HWTEST_F() local
309 HilogConfig config; HWTEST_F() local
335 HilogConfig config; HWTEST_F() local
361 HilogConfig config; HWTEST_F() local
387 HilogConfig config; HWTEST_F() local
413 HilogConfig config; HWTEST_F() local
439 HilogConfig config; HWTEST_F() local
465 HilogConfig config; HWTEST_F() local
491 HilogConfig config; HWTEST_F() local
517 HilogConfig config; HWTEST_F() local
543 HilogConfig config; HWTEST_F() local
813 HilogConfig config; HWTEST_F() local
853 HilogConfig config; HWTEST_F() local
888 HilogConfig config; HWTEST_F() local
926 HilogConfig config; HWTEST_F() local
[all...]
/developtools/hdc/hdc_rust/src/host/
H A Dauth.rs18 use crate::config::*;
20 use hdc::config;
21 use hdc::config::TaskMessage;
43 version: config::get_version(),
44 auth_type: config::AuthType::None as u8,
128 if recv.banner != config::HANDSHAKE_MESSAGE {
133 if recv.auth_type == config::AuthType::OK as u8 {
135 } else if recv.auth_type == config::AuthType::Publickey as u8 {
145 version: config::get_version(),
146 auth_type: config
[all...]

Completed in 9 milliseconds

1234567