Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 804) sorted by relevance

12345678910>>...33

/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_parsers/
Dftrace_ext4_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anond7122d4d0202() argument
24 msg->set_dev(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anond7122d4d0202()
25 msg->set_ino(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anond7122d4d0202()
26 … msg->set_data_blocks(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anond7122d4d0202()
31 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anond7122d4d0302() argument
34 msg->set_dev(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anond7122d4d0302()
35 msg->set_ino(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anond7122d4d0302()
36 msg->set_block(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anond7122d4d0302()
37 msg->set_len(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anond7122d4d0302()
38 … msg->set_logical(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anond7122d4d0302()
[all …]
Dftrace_net_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonb2b089cf0202() argument
24 msg->set_name(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anonb2b089cf0202()
25 … msg->set_napi_id(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonb2b089cf0202()
26 …msg->set_queue_mapping(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonb2b089cf0202()
27 … msg->set_skbaddr(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonb2b089cf0202()
28 … msg->set_vlan_tagged(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonb2b089cf0202()
29 … msg->set_vlan_proto(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonb2b089cf0202()
30 … msg->set_vlan_tci(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonb2b089cf0202()
31 … msg->set_protocol(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonb2b089cf0202()
32 … msg->set_ip_summed(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonb2b089cf0202()
[all …]
Dftrace_sched_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonc5adf22f0202() argument
24 msg->set_pid(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anonc5adf22f0202()
25 msg->set_caller(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonc5adf22f0202()
26 … msg->set_io_wait(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonc5adf22f0202()
31 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonc5adf22f0302() argument
34 msg->set_comm(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anonc5adf22f0302()
35 msg->set_pid(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anonc5adf22f0302()
40 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonc5adf22f0402() argument
43 msg->set_ret(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anonc5adf22f0402()
48 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonc5adf22f0502() argument
[all …]
Dftrace_v4l2_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon9b8707d00202() argument
24 msg->set_minor(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anon9b8707d00202()
25 msg->set_index(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon9b8707d00202()
26 msg->set_type(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon9b8707d00202()
27 … msg->set_bytesused(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon9b8707d00202()
28 msg->set_flags(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon9b8707d00202()
29 msg->set_field(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon9b8707d00202()
30 … msg->set_timestamp(FtraceFieldParser::ParseIntField<int64_t>(format.fields, i++, data, size)); in __anon9b8707d00202()
31 …msg->set_timecode_type(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon9b8707d00202()
32 …msg->set_timecode_flags(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)… in __anon9b8707d00202()
[all …]
Dftrace_writeback_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonac5f02240202() argument
24 msg->set_bdi(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anonac5f02240202()
25 msg->set_limit(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonac5f02240202()
26 … msg->set_setpoint(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonac5f02240202()
27 msg->set_dirty(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonac5f02240202()
28 … msg->set_bdi_setpoint(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonac5f02240202()
29 … msg->set_bdi_dirty(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonac5f02240202()
30 …g->set_dirty_ratelimit(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonac5f02240202()
31 …msg->set_task_ratelimit(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)… in __anonac5f02240202()
32 … msg->set_dirtied(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonac5f02240202()
[all …]
Dftrace_block_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonb7aa33130202() argument
24 msg->set_dev(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonb7aa33130202()
25 msg->set_sector(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonb7aa33130202()
26 … msg->set_nr_sector(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonb7aa33130202()
27 msg->set_rwbs(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anonb7aa33130202()
28 msg->set_comm(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anonb7aa33130202()
33 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonb7aa33130302() argument
36 msg->set_dev(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonb7aa33130302()
37 msg->set_sector(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonb7aa33130302()
38 … msg->set_nr_sector(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonb7aa33130302()
[all …]
Dftrace_sunrpc_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon50fe87630202() argument
24 … msg->set_task_id(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon50fe87630202()
25 … msg->set_client_id(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon50fe87630202()
26 msg->set_status(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anon50fe87630202()
31 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon50fe87630302() argument
34 … msg->set_task_id(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon50fe87630302()
35 … msg->set_client_id(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon50fe87630302()
36 msg->set_status(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anon50fe87630302()
41 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon50fe87630402() argument
44 … msg->set_task_id(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon50fe87630402()
[all …]
Dftrace_cgroup_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonf35aa0580202() argument
24 … msg->set_dst_root(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anonf35aa0580202()
25 msg->set_dst_id(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anonf35aa0580202()
26 … msg->set_dst_level(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anonf35aa0580202()
27 msg->set_pid(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anonf35aa0580202()
28 msg->set_dst_path(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anonf35aa0580202()
29 msg->set_comm(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anonf35aa0580202()
34 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonf35aa0580302() argument
37 msg->set_root(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anonf35aa0580302()
38 … msg->set_ss_mask(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonf35aa0580302()
[all …]
Dftrace_power_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon35c665d50202() argument
24 msg->set_name(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anon35c665d50202()
25 msg->set_state(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anon35c665d50202()
26 msg->set_cpu_id(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anon35c665d50202()
31 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon35c665d50302() argument
34 msg->set_name(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anon35c665d50302()
35 msg->set_state(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anon35c665d50302()
36 msg->set_cpu_id(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anon35c665d50302()
41 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon35c665d50402() argument
44 msg->set_name(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anon35c665d50402()
[all …]
Dftrace_vmscan_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon9159b5100202() argument
24 msg->set_shr(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anon9159b5100202()
25 msg->set_nid(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anon9159b5100202()
26 msg->set_shrink(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anon9159b5100202()
27 … msg->set_unused_scan(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anon9159b5100202()
28 … msg->set_new_scan(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anon9159b5100202()
29 msg->set_retval(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anon9159b5100202()
30 … msg->set_total_scan(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anon9159b5100202()
35 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon9159b5100302() argument
38 msg->set_shr(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anon9159b5100302()
[all …]
Dftrace_compaction_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonee1e65950202() argument
24 … msg->set_zone_start(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonee1e65950202()
25 … msg->set_migrate_pfn(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonee1e65950202()
26 … msg->set_free_pfn(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonee1e65950202()
27 … msg->set_zone_end(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonee1e65950202()
28 msg->set_sync(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonee1e65950202()
33 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonee1e65950302() argument
36 msg->set_nid(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anonee1e65950302()
37 msg->set_idx(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonee1e65950302()
38 msg->set_order(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anonee1e65950302()
[all …]
Dftrace_binder_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anond5208edc0202() argument
24 msg->set_proc(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anond5208edc0202()
25 … msg->set_page_index(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anond5208edc0202()
30 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anond5208edc0302() argument
33 msg->set_proc(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anond5208edc0302()
34 … msg->set_page_index(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anond5208edc0302()
39 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anond5208edc0402() argument
42 msg->set_proc(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anond5208edc0402()
43 … msg->set_page_index(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anond5208edc0402()
48 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anond5208edc0502() argument
[all …]
Dftrace_ftrace_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon4a48157d0202() argument
24 msg->set_ip(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anon4a48157d0202()
25 msg->set_str(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anon4a48157d0202()
30 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon4a48157d0302() argument
33 msg->set_line(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon4a48157d0302()
34 msg->set_func(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anon4a48157d0302()
35 msg->set_file(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anon4a48157d0302()
36 … msg->set_correct(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon4a48157d0302()
37 … msg->set_constant(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon4a48157d0302()
42 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon4a48157d0402() argument
[all …]
Dftrace_filelock_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anonc133e4d10202() argument
24 msg->set_fl(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonc133e4d10202()
25 msg->set_i_ino(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonc133e4d10202()
26 msg->set_s_dev(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonc133e4d10202()
27 … msg->set_fl_next(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonc133e4d10202()
28 … msg->set_fl_owner(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonc133e4d10202()
29 … msg->set_fl_flags(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonc133e4d10202()
30 … msg->set_fl_type(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anonc133e4d10202()
31 …msg->set_fl_break_time(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonc133e4d10202()
32 …>set_fl_downgrade_time(FtraceFieldParser::ParseIntField<uint64_t>(format.fields, i++, data, size)); in __anonc133e4d10202()
[all …]
Dftrace_mmc_event_parser.cpp21 [](FtraceEvent& ftraceEvent, uint8_t data[], size_t size, const EventFormat& format) { in __anon9de449450202() argument
24 … msg->set_cmd_opcode(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon9de449450202()
25 msg->set_cmd_err(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anon9de449450202()
26 msg->set_cmd_resp(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anon9de449450202()
27 … msg->set_cmd_retries(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon9de449450202()
28 … msg->set_stop_opcode(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon9de449450202()
29 … msg->set_stop_err(FtraceFieldParser::ParseIntField<int32_t>(format.fields, i++, data, size)); in __anon9de449450202()
30 msg->set_stop_resp(FtraceFieldParser::ParseStrField(format.fields, i++, data, size)); in __anon9de449450202()
31 … msg->set_stop_retries(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon9de449450202()
32 … msg->set_sbc_opcode(FtraceFieldParser::ParseIntField<uint32_t>(format.fields, i++, data, size)); in __anon9de449450202()
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/bean/
DProcessMemStruct.ts34 static draw(ctx: CanvasRenderingContext2D, data: ProcessMemStruct) {
35 if (data.frame) {
36 let width = data.frame.width || 0;
37 if (data.startTime === ProcessMemStruct.hoverProcessMemStruct?.startTime) {
40 …let drawHeight: number = Math.floor(((data.value || 0) * (data.frame.height || 0) * 1.0) / (data.m…
41 … ctx.fillRect(data.frame.x, data.frame.y + data.frame.height - drawHeight, width, drawHeight)
43 … ctx.arc(data.frame.x, data.frame.y + data.frame.height - drawHeight, 3, 0, 2 * Math.PI, true)
48 ctx.moveTo(data.frame.x + 3, data.frame.y + data.frame.height - drawHeight);
50 ctx.lineTo(data.frame.x + width, data.frame.y + data.frame.height - drawHeight)
53 ctx.fillStyle = ColorUtils.colorForTid(data.maxValue || 0)
[all …]
DThreadStruct.ts63 static draw(ctx: CanvasRenderingContext2D, data: ThreadStruct) {
64 if (data.frame) {
66 let stateText = data.state || '';
67 if ("S" == data.state) {
70 …ctx.fillRect(data.frame.x, data.frame.y + padding, data.frame.width, data.frame.height - padding *…
72 } else if ("R" == data.state) {
74 …ctx.fillRect(data.frame.x, data.frame.y + padding, data.frame.width, data.frame.height - padding *…
76 … ThreadStruct.drawString(ctx, ThreadStruct.getEndState(data.state || ''), 2, data.frame);
77 } else if ("D" == data.state) {
79 …ctx.fillRect(data.frame.x, data.frame.y + padding, data.frame.width, data.frame.height - padding *…
[all …]
DFuncStruct.ts37 static draw(ctx: CanvasRenderingContext2D, data: FuncStruct) {
38 if (data.frame) {
39 … if (data.dur == undefined || data.dur == null || data.dur == 0 || FuncStruct.isBinder(data)) {
41 let width = data.frame.width || 0;
42 … ctx.fillStyle = ColorUtils.FUNC_COLOR[data.depth || 0 % ColorUtils.FUNC_COLOR.length]
44 ctx.fillRect(data.frame.x, data.frame.y, data.frame.width, miniHeight - padding * 2)
46 FuncStruct.drawString(ctx, data.funName || '', 5, data.frame)
47 if (FuncStruct.isSelected(data)) {
50 … ctx.strokeRect(data.frame.x, data.frame.y, data.frame.width, miniHeight - padding * 2)
72 static isSelected(data: FuncStruct): boolean {
[all …]
DCpuFreqStruct.ts29 static draw(ctx: any, data: CpuFreqStruct) {
30 if (data.frame) {
31 let width = data.frame.width || 0;
32 let index = data.cpu || 0
36 if (data.startNS === CpuFreqStruct.hoverCpuFreqStruct?.startNS) {
39 …let drawHeight: number = Math.floor(((data.value || 0) * (data.frame.height || 0) * 1.0) / CpuFreq…
40 … ctx.fillRect(data.frame.x, data.frame.y + data.frame.height - drawHeight, width, drawHeight)
42 … ctx.arc(data.frame.x, data.frame.y + data.frame.height - drawHeight, 3, 0, 2 * Math.PI, true)
47 ctx.moveTo(data.frame.x + 3, data.frame.y + data.frame.height - drawHeight);
49 ctx.lineTo(data.frame.x + width, data.frame.y + data.frame.height - drawHeight)
[all …]
DMemoryAbilityMonitorStruct.ts29 static draw(context2D: any, data: MemoryAbilityMonitorStruct) {
30 if (data.frame) {
31 let width = data.frame.width || 0;
32 let index = data.cpu || 0
36 if (data.startNS === MemoryAbilityMonitorStruct.hoverMemoryAbilityStruct?.startNS) {
39 …let drawHeight: number = Math.floor(((data.value || 0) * (data.frame.height || 0) * 1.0) / MemoryA…
40 … context2D.fillRect(data.frame.x, data.frame.y + data.frame.height - drawHeight, width, drawHeight)
42 …context2D.arc(data.frame.x, data.frame.y + data.frame.height - drawHeight, 3, 0, 2 * Math.PI, true)
47 context2D.moveTo(data.frame.x + 3, data.frame.y + data.frame.height - drawHeight);
49 … context2D.lineTo(data.frame.x + width, data.frame.y + data.frame.height - drawHeight)
[all …]
DDiskAbilityMonitorStruct.ts29 static draw(context2D: any, data: DiskAbilityMonitorStruct) {
30 if (data.frame) {
31 let width = data.frame.width || 0;
32 let index = data.cpu || 0
36 if (data.startNS === DiskAbilityMonitorStruct.hoverDiskAbilityStruct?.startNS) {
39 …let drawHeight: number = Math.floor(((data.value || 0) * (data.frame.height || 0) * 1.0) / DiskAbi…
40 … context2D.fillRect(data.frame.x, data.frame.y + data.frame.height - drawHeight, width, drawHeight)
42 …context2D.arc(data.frame.x, data.frame.y + data.frame.height - drawHeight, 3, 0, 2 * Math.PI, true)
47 context2D.moveTo(data.frame.x + 3, data.frame.y + data.frame.height - drawHeight);
49 … context2D.lineTo(data.frame.x + width, data.frame.y + data.frame.height - drawHeight)
[all …]
DNetworkAbilityMonitorStruct.ts28 static draw(context2D: any, data: NetworkAbilityMonitorStruct) {
29 if (data.frame) {
30 let width = data.frame.width || 0;
35 if (data.startNS === NetworkAbilityMonitorStruct.hoverNetworkAbilityStruct?.startNS) {
38 …let drawHeight: number = Math.floor(((data.value || 0) * (data.frame.height || 0) * 1.0) / Network…
39 … context2D.fillRect(data.frame.x, data.frame.y + data.frame.height - drawHeight, width, drawHeight)
41 …context2D.arc(data.frame.x, data.frame.y + data.frame.height - drawHeight, 3, 0, 2 * Math.PI, true)
46 context2D.moveTo(data.frame.x + 3, data.frame.y + data.frame.height - drawHeight);
48 … context2D.lineTo(data.frame.x + width, data.frame.y + data.frame.height - drawHeight)
53 …let drawHeight: number = Math.floor(((data.value || 0) * (data.frame.height || 0)) / NetworkAbilit…
[all …]
/developtools/profiler/host/smartperf/client/client_ui/entry/src/main/ets/common/utils/
DCSVUtils.ts21 let data = ""
23 data += k + "," + tGeneralInfo[k] + "\n"
25 return data
31 let data = ""
35 data += t[k] + ","
37 data = data.substring(0, data.lastIndexOf(","))
38 data += "\n"
40 let result = tittle + data
47 let data = ""
49 data += k + ","
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/database/ui-worker/
DProcedureWorker.ts128 if ((e.data.type as string).startsWith("clear")) {
136 id: e.data.id,
137 type: e.data.type,
142 if (e.data.params.list) {
143 dataList[e.data.type] = convertJSON(e.data.params.list);
144 if (e.data.params.offscreen) {
145 canvasList[e.data.type] = e.data.params.offscreen;
146 contextList[e.data.type] = e.data.params.offscreen!.getContext('2d');
147 contextList[e.data.type].scale(e.data.params.dpr, e.data.params.dpr);
150 if (!dataFilter[e.data.type]) {
[all …]
/developtools/profiler/host/smartperf/ide/src/trace/database/
DProcedureWorkerThread.ts124 static draw(ctx: CanvasRenderingContext2D, data: ThreadStruct) {
125 if (data.frame) {
127 let stateText = data.state || '';
128 if ("S" == data.state) {
131 …ctx.fillRect(data.frame.x, data.frame.y + padding, data.frame.width, data.frame.height - padding *…
133 } else if ("R" == data.state || "R+" == data.state) {
135 …ctx.fillRect(data.frame.x, data.frame.y + padding, data.frame.width, data.frame.height - padding *…
137data.frame.width > 4 && ThreadStruct.drawString(ctx, ThreadStruct.getEndState(data.state || ''), 2…
138 } else if ("D" == data.state) {
140 …ctx.fillRect(data.frame.x, data.frame.y + padding, data.frame.width, data.frame.height - padding *…
[all …]

12345678910>>...33