Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 368) sorted by relevance

12345678910>>...15

/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
Dflow_controller_test.cpp87 TracePluginConfig config; variable
94 config.add_ftrace_events("sched/sched_switch");
95 config.set_buffer_size_kb(BUFFER_SIZE_KB);
96 config.set_flush_interval_ms(FLUSH_INTERVAL_MS);
97 config.set_flush_threshold_kb(FLUSH_THRESHOLD_KB);
98 config.set_parse_ksyms(true);
99 config.set_clock("global");
100 config.set_trace_period_ms(TRACE_PERIOD_MS);
101 config.set_raw_data_prefix("/data/local/tmp/raw_trace_");
102 std::vector<uint8_t> configData(config.ByteSizeLong());
[all …]
Dftrace_parser_test.cpp52 TracePluginConfig config; in SetUpTestCase() local
59 config.add_ftrace_events("sched/sched_switch"); in SetUpTestCase()
60 config.set_buffer_size_kb(BUFFER_SIZE_KB); in SetUpTestCase()
61 config.set_flush_interval_ms(FLUSH_INTERVAL_MS); in SetUpTestCase()
62 config.set_flush_threshold_kb(FLUSH_THRESHOLD_KB); in SetUpTestCase()
63 config.set_parse_ksyms(true); in SetUpTestCase()
64 config.set_clock("global"); in SetUpTestCase()
65 config.set_trace_period_ms(TRACE_PERIOD_MS); in SetUpTestCase()
66 config.set_raw_data_prefix("/data/local/tmp/raw_trace_"); in SetUpTestCase()
67 std::vector<uint8_t> configData(config.ByteSizeLong()); in SetUpTestCase()
[all …]
/developtools/profiler/device/plugins/hiperf_plugin/test/unittest/
Dhiperf_plugin_unittest.cpp81 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/
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.ByteSizeLong()); in main()
[all …]
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.categories().empty()) { in ParseConfig()
[all …]
/developtools/ace_ets2bundle/compiler/
Dwebpack.config.js48 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/
DSpFlags.ts146 private createCustomDiv(config: FlagConfigItem, configDiv: HTMLDivElement): void {
150 titleLabel.textContent = config.title;
154 configSelect.setAttribute('title', config.title);
155 config.switchOptions.forEach((optionItem) => {
170 description.textContent = config.describeContent;
179 allConfig.forEach((config) => {
181 this.createCustomDiv(config, configDiv);
182 if (config.title === 'AnimationAnalysis') {
189 deviceWidthEl.value = <string> config.addInfo!.physicalWidth;
204 deviceHeightEl.value = <string> config.addInfo!.physicalHeight;
[all …]
/developtools/integration_verification/tools/fotff/pkg/gitee_common/
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.ImgList {
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/component/
DSpFlags.ts141 private createCustomDiv(config: FlagConfigItem, configDiv: HTMLDivElement): void {
145 titleLabel.textContent = config.title;
149 configSelect.setAttribute('title', config.title);
150 config.switchOptions.forEach((optionItem) => {
165 description.textContent = config.describeContent;
174 allConfig.forEach((config) => {
176 this.createCustomDiv(config, configDiv);
177 if (config.title === 'DynamicAnalysis') {
184 deviceWidthEl.value = <string>config.addInfo!.physicalWidth;
199 deviceHeightEl.value = <string>config.addInfo!.physicalHeight;
[all …]
/developtools/profiler/device/plugins/hidump_plugin/test/unittest/
Dhidump_plugin_unittest.cpp67 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/
Dwebpack.rich.config.js166 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;
254config.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/
Dloader-gen.js44 function getLoaderString (type, config) { argument
45 config = config || {}
46 const customLoader = loadCustomLoader(config)
52 return elementLoaderString(loaders, config)
54 return templateLoaderString(loaders, config, customLoader)
56 return styleLoaderString(loaders, config, customLoader)
58 return scriptLoaderString(loaders, config, customLoader)
60 return configLoaderString(loaders, config)
62 return dataLoaderString(loaders, config)
66 function loadCustomLoader (config) { argument
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/component/setting/
DSpFileSystem.ts130 this.configList.forEach((config) => {
132 if (config.hidden) {
141 fileSystemTitle.textContent = config.title;
144 fileSystemDes.textContent = config.des;
147 switch (config.type) {
150 let placeholder = config.selectArray[0];
151 if (config.title == 'Process') {
152 } else if (config.title == 'SystemCall Event') {
155 … class="file-system-select config" mode="multiple" canInsert="" title="${config.title}" rounded pl…
156 config.selectArray.forEach((value: string) => {
[all …]
DSpVmTracker.ts62 this.configList.forEach((config) => {
64 if (config.hidden) {
73 vmTrackerTitle.textContent = config.title;
76 des.textContent = config.des;
79 switch (config.type) {
82 …alue="" class="select config" placement="bottom" title="${config.title}" placeholder="${config.se…
89 vmTrackerSwitch.title = config.title;
90 if (config.value) {
95 if (config.title == 'Start VM Tracker Record') {
DSpRecordPerf.ts182 this.perfConfigList.forEach((config) => {
184 if (config.hidden) {
193 recordPerfTitle.textContent = config.title;
196 recordPerfDes.textContent = config.des;
199 switch (config.type) {
202 let placeholder = config.selectArray[0];
203 if (config.title == 'Event List') {
206 … class="record-perf-select config" mode="multiple" canInsert="" title="${config.title}" rounded pl…
207 config.selectArray.forEach((value: string) => {
214 …rk-color3,#46B1E3)" open dir="right" class="silderclass config" title="${config.title}"></lit-slid…
[all …]
DSpHisysEvent.ts57 this.eventConfigList.forEach((config) => {
59 if (config.hidden) {
68 hisysEventTitle.textContent = config.title;
71 hisysEventDes.textContent = config.des;
74 switch (config.type) {
77 …" class="event-select config" placement="bottom" title="${config.title}" placeholder="${config.se…
84 hisysEventSwitch.title = config.title;
85 if (config.value) {
90 if (config.title == 'Start Hisystem Event Tracker Record') {
/developtools/profiler/device/plugins/hilog_plugin/test/unittest/
Dhilog_plugin_unittest.cpp78 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_device_type(Type::TYPE_UNSPECIFIED);
173 plugin.SetConfig(config);
185 HilogConfig config; variable
189 config.set_device_type(Type::HI3516);
190 config.set_pid(pid);
191 config.set_log_level(Level::ERROR);
[all …]
/developtools/hiperf/src/
Dreport.cpp111 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/
Dnetwork_plugin_test.cpp89 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/
Dparse_plugin_config_test.cpp32 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
87 CreateCommand(pluginName, parseConfig, config);
88 auto profilerConfig = GetProfilerPluginConfig(config);
/developtools/profiler/device/plugins/hisysevent_plugin/test/unittest/
Dhisysevent_plugin_unittest.cpp74 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/profiler/device/plugins/hiperf_plugin/src/
Dhiperf_module.cpp46 bool ParseConfigToCmd(const HiperfPluginConfig& config, std::vector<std::string>& cmds) in ParseConfigToCmd() argument
48 g_isRoot = config.is_root(); in ParseConfigToCmd()
49 auto logLevel = config.log_level(); in ParseConfigToCmd()
65 if (!config.outfile_name().empty()) { in ParseConfigToCmd()
66 prepareCmd += " -o " + config.outfile_name(); in ParseConfigToCmd()
68 …int ret = strncpy_s(g_pluginModule.outFileName, fileSize, config.outfile_name().c_str(), fileSize … in ParseConfigToCmd()
69 … CHECK_TRUE(ret == EOK, false, "strncpy_s error! outfile is %s", config.outfile_name().c_str()); in ParseConfigToCmd()
71 if (!config.record_args().empty()) { in ParseConfigToCmd()
72 prepareCmd += " " + config.record_args(); in ParseConfigToCmd()
115 HiperfPluginConfig config; in HiperfPluginSessionStart() local
[all …]
/developtools/smartperf_host/ide/src/trace/component/setting/
DSpRecordPerf.ts182 this.perfConfigList.forEach((config) => {
184 if (config.hidden) {
193 recordPerfTitle.textContent = config.title;
196 recordPerfDes.textContent = config.des;
199 switch (config.type) {
202 let placeholder = config.selectArray[0];
203 if (config.title == 'Event List') {
206 … class="record-perf-select config" mode="multiple" canInsert="" title="${config.title}" rounded pl…
207 config.selectArray.forEach((value: string) => {
214 …rk-color3,#46B1E3)" open dir="right" class="silderclass config" title="${config.title}"></lit-slid…
[all …]
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/
DREADME.md9 理论上可以支持所有产品,只要在config.yaml中进行了配置即可,目前已配置产品包括:
18 1. 扫描BUILD.gn文件,收集各个target的编译产物及其对应的component_name, subsystem_name信息,并存储到config.yaml中的gn_info_file字…
19 2. 根据配置文件config.yaml扫描产品的编译产物目录,得到真实的编译产物信息(主要是大小)
59 - {product_name}_product.json:该产品实际的编译产物信息,根据config.yaml进行收集
66config.yaml中进行配置即可,格式说明如下:
94 …e类型对BUILD.gn进行扫描,因此如果BUILD.gn中新增了template,需要在代码层数进行相应的更改.主要是在config.py中配置Processor,并在config.yaml中添…
98 1. 如果已知编译产物不可能从某些目录下的BUILD.gn产生,则可以将其对应目录加入到config.yaml的black_list,从而不对该目录下的BUILD.gn进行扫描,以减少出错概率
99 1. 对于已知检测错误的或NOTFOUND的编译产物,如果知道其正确的部件和子系统,可在config.yaml中的manual_config进行配置
/developtools/integration_verification/tools/fotff/utils/
Dproxy.go44 var config ProxyConfig
45 ParseFromConfigFile("proxy", &config)
46 if len(config.ServerList) != 0 {
47 proxyList = strings.Split(config.ServerList, ",")
49 proxyUser = config.User
50 proxyPassword = config.Password

12345678910>>...15