Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 115) sorted by relevance

12345

/developtools/ace_js2bundle/ace-loader/plugin/templater/
Ddata.js23 function parseData(v) { argument
24 v.match(dataReg).forEach(element => {
26 v = v.replace(element, repElement)
29 if (!expressionReg.test(v)) {
36 for (let i = next; i < v.length; i++) {
37 let match = dataReg.exec(v)
42 getValue(next, start, v, res)
46 getValue(next, v.length, v, res)
50 function getValue(begin, end, v, res) { argument
53 value: v.slice(begin, end)
[all …]
/developtools/profiler/host/smartperf/client/client_command/
Dcontrol_call_cmd.cpp34 std::string ControlCallCmd::GetResult(int argc, std::vector<std::string> v) in GetResult() argument
37 if (v[ohType] == "ohtest") { in GetResult()
40 if (v[typeName] == "coldStart") { in GetResult()
41 time = SmartPerf::ControlCallCmd::ColdStart(v); in GetResult()
44 } else if (v[typeName] == "hotStart") { in GetResult()
45 time = SmartPerf::ControlCallCmd::HotStart(v); in GetResult()
48 } else if (v[typeName] == "responseTime") { in GetResult()
52 } else if (v[typeName] == "completeTime") { in GetResult()
56 } else if (v[typeName] == "coldStartHM") { in GetResult()
57 time = SmartPerf::ControlCallCmd::ColdStartHM(v); in GetResult()
[all …]
Dsmartperf_main.cpp20 std::vector<std::string> v; in main() local
22 v.push_back(argv[i]); in main()
24 OHOS::SmartPerf::EditorCommand(argc, v); in main()
/developtools/profiler/proto_encoder/include/
Dvarint_encode.h68 inline typename std::make_unsigned<T>::type EncodeZigZag(T v) in EncodeZigZag() argument
70 if (v >= 0) { in EncodeZigZag()
71 return ((typename std::make_unsigned<T>::type)(v) << 1); in EncodeZigZag()
74 return ((typename std::make_unsigned<T>::type)(~v) << 1) + 1; in EncodeZigZag()
78 inline uint32_t EncodeVarint(uint8_t* buf, T v) in EncodeVarint() argument
82 uint64_t value = static_cast<uint64_t>(v); in EncodeVarint()
96 inline uint32_t EncodeZigZagVarint(uint8_t* buf, T v) in EncodeZigZagVarint() argument
98 return EncodeVarint(buf, EncodeZigZag(v)); in EncodeZigZagVarint()
102 inline void EncodeVarintPadding(uint8_t* buf, T v, uint32_t paddingSize) in EncodeVarintPadding() argument
107 buf[size] = (VARINT_MASK_PAYLOAD & v) | VARINT_MASK_MSB; in EncodeVarintPadding()
[all …]
/developtools/profiler/host/smartperf/client/client_command/include/
Dcontrol_call_cmd.h25 double ColdStart(std::vector<std::string> v);
26 double ColdStartHM(std::vector<std::string> v);
27 double HotStart(std::vector<std::string> v);
30 static std::string SlideFPS(std::vector<std::string> v);
31 static std::string SlideFps(std::vector<std::string> v);
33 double StartFrameFps(std::vector<std::string> v);
34 std::string GetResult(int argc, std::vector<std::string> v);
/developtools/profiler/host/smartperf/trace_streamer/src/parser/htrace_pbreader_parser/
Dhtrace_js_memory_parser.cpp53 void from_json(const json& j, Meta& v) in from_json() argument
56 v.nodeFields.emplace_back(j["node_fields"][i]); in from_json()
64 v.nodeTypes.emplace_back(nodeTypes); in from_json()
67 v.nodeTypes.emplace_back(nodeTypes); in from_json()
71 v.edgeFields.emplace_back(j["edge_fields"][i]); in from_json()
79 v.edgeTypes.emplace_back(edgeTypes); in from_json()
82 v.edgeTypes.emplace_back(edgeTypes); in from_json()
86 v.traceFunctionInfoFields.emplace_back(j["trace_function_info_fields"][i]); in from_json()
89 v.traceNodeFields.emplace_back(j["trace_node_fields"][i]); in from_json()
92 v.sampleFields.emplace_back(j["sample_fields"][i]); in from_json()
[all …]
/developtools/integration_verification/tools/fotff/utils/
Dini.go42 var v string
44 v, err = conf.GetValue(section, key)
47 v = rt.Elem().Field(i).Tag.Get("default")
49 rv.Elem().Field(i).SetString(v)
58 var v string
60 v, err = conf.GetValue(section, key)
63 v = rt.Elem().Field(i).Tag.Get("default")
65 rv.Elem().Field(i).Set(reflect.ValueOf(strings.Split(v, ",")))
Druntime.go41 func CacheGet(section string, k string) (v any, found bool) {
45 func CacheSet(section string, k string, v any) error {
46 runtimeCache.Set(sectionKey(section, k), v, cache.DefaultExpiration)
/developtools/profiler/host/smartperf/trace_streamer/src/base/
Dindex_map.cpp114 auto v = static_cast<TableRowId>(sqlite3_value_int64(argv)); in FilterId() local
117 Intersect(v, v + 1); in FilterId()
120 Intersect(v, end_); in FilterId()
123 v++; in FilterId()
124 Intersect(v, end_); in FilterId()
127 v++; in FilterId()
128 Intersect(0, v); in FilterId()
131 Intersect(0, v); in FilterId()
141 auto v = static_cast<uint64_t>(sqlite3_value_int64(argv)); in FilterTS() local
145 IntersectabcEqual(times, v, getValue); in FilterTS()
[all …]
Dindex_map.h285 void IntersectabcEqual(const std::deque<Row>& rows, Val v, GetV getValue) in IntersectabcEqual() argument
287 auto start = std::lower_bound(rows.begin() + start_, rows.begin() + end_, v); in IntersectabcEqual()
288 auto end = std::upper_bound(start, rows.begin() + end_, v); in IntersectabcEqual()
296 void IntersectGreaterEqual(const std::deque<Row>& rows, Val v, GetV getValue) in IntersectGreaterEqual() argument
298 auto start = std::lower_bound(rows.begin() + start_, rows.begin() + end_, v, in IntersectGreaterEqual()
299 … [&](const Row& row, const Val& v) { return v > getValue(row); }); in IntersectGreaterEqual()
306 void IntersectLessEqual(const std::deque<Row>& rows, Val v, GetV getValue) in IntersectLessEqual() argument
308 auto end = std::upper_bound(rows.begin() + start_, rows.begin() + end_, v, in IntersectLessEqual()
309 … [&](const Row& row, const Val& v) { return v > getValue(row); }); in IntersectLessEqual()
315 void RemoveNullElements(const std::deque<T>& rows, T v) in RemoveNullElements() argument
/developtools/smartperf_host/trace_streamer/src/base/
Dindex_map.cpp114 auto v = static_cast<TableRowId>(sqlite3_value_int64(argv)); in FilterId() local
117 Intersect(v, v + 1); in FilterId()
120 Intersect(v, end_); in FilterId()
123 v++; in FilterId()
124 Intersect(v, end_); in FilterId()
127 v++; in FilterId()
128 Intersect(0, v); in FilterId()
131 Intersect(0, v); in FilterId()
141 auto v = static_cast<uint64_t>(sqlite3_value_int64(argv)); in FilterTS() local
145 IntersectabcEqual(times, v, getValue); in FilterTS()
[all …]
Dindex_map.h157 void IntersectabcEqual(const std::deque<Row>& rows, Val v, GetV getValue) in IntersectabcEqual() argument
159 auto start = std::lower_bound(rows.begin() + start_, rows.begin() + end_, v); in IntersectabcEqual()
160 auto end = std::upper_bound(start, rows.begin() + end_, v); in IntersectabcEqual()
168 void IntersectGreaterEqual(const std::deque<Row>& rows, Val v, GetV getValue) in IntersectGreaterEqual() argument
170 auto start = std::lower_bound(rows.begin() + start_, rows.begin() + end_, v, in IntersectGreaterEqual()
171 … [&](const Row& row, const Val& v) { return v > getValue(row); }); in IntersectGreaterEqual()
178 void IntersectLessEqual(const std::deque<Row>& rows, Val v, GetV getValue) in IntersectLessEqual() argument
180 auto end = std::upper_bound(rows.begin() + start_, rows.begin() + end_, v, in IntersectLessEqual()
181 … [&](const Row& row, const Val& v) { return v > getValue(row); }); in IntersectLessEqual()
187 void RemoveNullElements(const std::deque<T>& rows, T v) in RemoveNullElements() argument
/developtools/smartperf_host/trace_streamer/src/parser/htrace_pbreader_parser/
Dhtrace_js_memory_parser.cpp53 void from_json(const json& j, Meta& v) in from_json() argument
56 v.nodeFields.emplace_back(j["node_fields"][i]); in from_json()
64 v.nodeTypes.emplace_back(nodeTypes); in from_json()
67 v.nodeTypes.emplace_back(nodeTypes); in from_json()
71 v.edgeFields.emplace_back(j["edge_fields"][i]); in from_json()
79 v.edgeTypes.emplace_back(edgeTypes); in from_json()
82 v.edgeTypes.emplace_back(edgeTypes); in from_json()
86 v.traceFunctionInfoFields.emplace_back(j["trace_function_info_fields"][i]); in from_json()
89 v.traceNodeFields.emplace_back(j["trace_node_fields"][i]); in from_json()
92 v.sampleFields.emplace_back(j["sample_fields"][i]); in from_json()
[all …]
/developtools/profiler/host/smartperf/ide/src/
Dicon.svg8 ….7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c0.1-81.4 34.6-1…
44v-42.8c0-5-4.6-8.8-9.5-7.8-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3…
48 …4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c0.1-87 37-135.5…
51 …<path d="M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z…
58 …<path d="M664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z…
61 …3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"…
70 …52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7c0-19.7 12.4-37.…
75v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.9-5.3-41H607c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8…
104 …17c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c…
119 …0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76…
[all …]
/developtools/smartperf_host/ide/src/
Dicon.svg8 ….7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c0.1-81.4 34.6-1…
44v-42.8c0-5-4.6-8.8-9.5-7.8-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3…
48 …4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c0.1-87 37-135.5…
51 …<path d="M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z…
58 …<path d="M664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z…
61 …3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"…
70 …52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7c0-19.7 12.4-37.…
75v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.9-5.3-41H607c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8…
104 …17c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c…
119 …0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76…
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/component/
DStackBar.ts30 for (let v of val) {
31 if (map.has(v.state)) {
32 let sv = map.get(v.state);
33 sv!.value = sv!.value + v.wallDuration;
34 sv!.state = v.state + ' : ' + sv!.value.toFixed(7) + 'ms';
37 sv.value = v.wallDuration;
38 sv.state = v.state + ' : ' + sv.value.toFixed(7) + 'ms';
39 sv.color = Utils.getStateColor(v.stateJX);
40 map.set(v.state, sv);
/developtools/smartperf_host/ide/src/trace/component/
DStackBar.ts30 for (let v of val) {
31 if (map.has(v.state)) {
32 let sv = map.get(v.state);
33 sv!.value = sv!.value + v.wallDuration;
34 sv!.state = v.state + ' : ' + sv!.value.toFixed(7) + 'ms';
37 sv.value = v.wallDuration;
38 sv.state = v.state + ' : ' + sv.value.toFixed(7) + 'ms';
39 sv.color = Utils.getStateColor(v.stateJX);
40 map.set(v.state, sv);
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/table/
Dtable_base.cpp217 auto v = static_cast<uint64_t>(sqlite3_value_int64(argv)); in FilterTS() local
221 indexMap_->IntersectabcEqual(times, v, getValue); in FilterTS()
224 v++; in FilterTS()
226 indexMap_->IntersectGreaterEqual(times, v, getValue); in FilterTS()
230 v++; in FilterTS()
232 indexMap_->IntersectLessEqual(times, v, getValue); in FilterTS()
235 indexMap_->RemoveNullElements(times, v); in FilterTS()
261 auto v = static_cast<TableRowId>(sqlite3_value_int64(argv)); in FilterId() local
264 indexMap_->Intersect(v, v + 1); in FilterId()
267 indexMap_->Intersect(v, rowCount_); in FilterId()
[all …]
/developtools/smartperf_host/trace_streamer/sdk/dubai_sdk/table/
Dtable_base.cpp219 auto v = static_cast<uint64_t>(sqlite3_value_int64(argv)); in FilterTS() local
223 indexMap_->IntersectabcEqual(times, v, getValue); in FilterTS()
226 v++; in FilterTS()
228 indexMap_->IntersectGreaterEqual(times, v, getValue); in FilterTS()
232 v++; in FilterTS()
234 indexMap_->IntersectLessEqual(times, v, getValue); in FilterTS()
237 indexMap_->RemoveNullElements(times, v); in FilterTS()
263 auto v = static_cast<TableRowId>(sqlite3_value_int64(argv)); in FilterId() local
266 indexMap_->Intersect(v, v + 1); in FilterId()
269 indexMap_->Intersect(v, rowCount_); in FilterId()
[all …]
/developtools/smartperf_host/trace_streamer/src/table/base/
Dtable_base.cpp258 auto v = static_cast<uint64_t>(sqlite3_value_int64(argv)); in FilterTS() local
262 indexMap_->IntersectabcEqual(times, v, getValue); in FilterTS()
265 v++; in FilterTS()
267 indexMap_->IntersectGreaterEqual(times, v, getValue); in FilterTS()
271 v++; in FilterTS()
273 indexMap_->IntersectLessEqual(times, v, getValue); in FilterTS()
276 indexMap_->RemoveNullElements(times, v); in FilterTS()
305 auto v = static_cast<TableRowId>(sqlite3_value_int64(argv)); in FilterId() local
308 indexMap_->Intersect(v, v + 1); in FilterId()
311 indexMap_->Intersect(v, rowCount_); in FilterId()
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/table/base/
Dtable_base.cpp258 auto v = static_cast<uint64_t>(sqlite3_value_int64(argv)); in FilterTS() local
262 indexMap_->IntersectabcEqual(times, v, getValue); in FilterTS()
265 v++; in FilterTS()
267 indexMap_->IntersectGreaterEqual(times, v, getValue); in FilterTS()
271 v++; in FilterTS()
273 indexMap_->IntersectLessEqual(times, v, getValue); in FilterTS()
276 indexMap_->RemoveNullElements(times, v); in FilterTS()
305 auto v = static_cast<TableRowId>(sqlite3_value_int64(argv)); in FilterId() local
308 indexMap_->Intersect(v, v + 1); in FilterId()
311 indexMap_->Intersect(v, rowCount_); in FilterId()
[all …]
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/detail/chart/utils/
DColorTemplate.ets45 var h = 0, s = 0, v = 0;
52 v = max / 255;
71 v = Math.floor(v * 100);
73 hsv.push(h,s,v)
77 var h = arr[0], s = arr[1], v = arr[2];
79 v = v / 100;
83 var p = v * (1 - s);
84 var q = v * (1 - f * s);
85 var t = v * (1 - (1 - f) * s);
88 r = v; g = t; b = p;
[all …]
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/
Dgn_common_tool.py119 for v in var_name_tuple:
120 pv = v.strip('"').lstrip("${").rstrip('}')
132 var_val_dict[v] = output
133 GnCommonTool.__var_val_mem_dict[v] = output
151 for k, v in dict(zip(variable_list, value_list)).items():
152 s = s.replace(k, v)
167 v = var_name.strip('"').lstrip("${").rstrip('}')
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/
Drom_analysis.py119 for k, v in relative_dir.items():
120 product_path_dit[k] = os.path.join(root_dir, v)
124 for k, v in product_path_dit.items():
125 if not os.path.exists(v):
127 product_dict[k] = BasicTool.find_files_with_pattern(v) # v是全路径
131 for v in relative_dir.values():
132 if v in rest_dir_list:
133 rest_dir_list.remove(v)
134 for v in relative_dir.values():
135 if os.sep in v:
[all …]
/developtools/smartperf_host/trace_streamer/src/table/ftrace/
Dprocess_table.cpp309 auto v = static_cast<TableRowId>(sqlite3_value_int64(argv)); in FilterId() local
312 indexMap_->Intersect(v, v + 1); in FilterId()
315 indexMap_->Intersect(v, rowCount_); in FilterId()
318 v++; in FilterId()
319 indexMap_->Intersect(v, rowCount_); in FilterId()
322 v++; in FilterId()
323 indexMap_->Intersect(0, v); in FilterId()
326 indexMap_->Intersect(0, v); in FilterId()

12345