/external/perfetto/src/base/ |
D | string_splitter_unittest.cc | 32 EXPECT_EQ(nullptr, ss.cur_token()); in TEST() 35 EXPECT_EQ(nullptr, ss.cur_token()); in TEST() 40 EXPECT_EQ(nullptr, ss.cur_token()); in TEST() 43 EXPECT_EQ(nullptr, ss.cur_token()); in TEST() 48 EXPECT_EQ(nullptr, ss.cur_token()); in TEST() 51 EXPECT_STREQ("a", ss.cur_token()); in TEST() 59 EXPECT_STREQ("abc", ss.cur_token()); in TEST() 66 EXPECT_STREQ("ab", ss.cur_token()); in TEST() 73 EXPECT_STREQ("ab", ss.cur_token()); in TEST() 81 EXPECT_STREQ("a", ss.cur_token()); in TEST() [all …]
|
D | string_splitter.cc | 40 Initialize(outer->cur_token(), outer->cur_token_size() + 1); in StringSplitter()
|
/external/perfetto/src/traced/probes/ftrace/ |
D | cpu_stats_parser.cc | 54 if (base::StartsWith(splitter.cur_token(), "entries")) { in DumpCpuStats() 55 stats->entries = ExtractInt(splitter.cur_token()); in DumpCpuStats() 56 } else if (base::StartsWith(splitter.cur_token(), "overrun")) { in DumpCpuStats() 57 stats->overrun = ExtractInt(splitter.cur_token()); in DumpCpuStats() 58 } else if (base::StartsWith(splitter.cur_token(), "commit overrun")) { in DumpCpuStats() 59 stats->commit_overrun = ExtractInt(splitter.cur_token()); in DumpCpuStats() 60 } else if (base::StartsWith(splitter.cur_token(), "bytes")) { in DumpCpuStats() 61 stats->bytes_read = ExtractInt(splitter.cur_token()); in DumpCpuStats() 62 } else if (base::StartsWith(splitter.cur_token(), "oldest event ts")) { in DumpCpuStats() 63 stats->oldest_event_ts = ExtractDouble(splitter.cur_token()); in DumpCpuStats() [all …]
|
D | printk_formats_parser.cc | 36 std::string line(lines.cur_token()); in ParsePrintkFormats()
|
/external/perfetto/src/traced/probes/packages_list/ |
D | packages_list_parser.cc | 29 package->name = std::string(ss.cur_token(), ss.cur_token_size()); in ReadPackagesListLine() 33 long long uid = strtoll(ss.cur_token(), &end, 10); in ReadPackagesListLine() 34 if ((*end != '\0' && *end != '\n') || *ss.cur_token() == '\0') { in ReadPackagesListLine() 43 long long debuggable = strtoll(ss.cur_token(), &end, 10); in ReadPackagesListLine() 44 if ((*end != '\0' && *end != '\n') || *ss.cur_token() == '\0') { in ReadPackagesListLine() 53 long long profilable_from_shell = strtoll(ss.cur_token(), &end, 10); in ReadPackagesListLine() 54 if ((*end != '\0' && *end != '\n') || *ss.cur_token() == '\0') { in ReadPackagesListLine() 63 long long version_code = strtoll(ss.cur_token(), &end, 10); in ReadPackagesListLine() 64 if ((*end != '\0' && *end != '\n') || *ss.cur_token() == '\0') { in ReadPackagesListLine() 66 ss.cur_token()); in ReadPackagesListLine() [all …]
|
/external/python/cpython3/Parser/ |
D | asdl.py | 262 self.cur_token = None 276 'Expected "module" (found {})'.format(self.cur_token.value), 277 self.cur_token.lineno) 286 while self.cur_token.kind == TokenKind.TypeId: 294 if self.cur_token.kind == TokenKind.LParen: 301 while self.cur_token.kind == TokenKind.Pipe: 315 while self.cur_token.kind == TokenKind.TypeId: 318 id = (self._advance() if self.cur_token.kind in self._id_kinds 321 if self.cur_token.kind == TokenKind.RParen: 323 elif self.cur_token.kind == TokenKind.Comma: [all …]
|
/external/yapf/yapf/yapflib/ |
D | unwrapped_line.py | 373 def _MustBreakBefore(prev_token, cur_token): argument 380 if (cur_token.is_string and prev_token.is_string and 381 IsSurroundedByBrackets(cur_token)): 387 cur_token.node, pytree_utils.Annotation.MUST_SPLIT, default=False) 390 def _CanBreakBefore(prev_token, cur_token): argument 393 cval = cur_token.value 401 if cur_token.split_penalty >= split_penalty.UNBREAKABLE: 421 if cur_token.is_comment and prev_token.lineno == cur_token.lineno: 466 def _SplitPenalty(prev_token, cur_token): argument 469 cval = cur_token.value [all …]
|
D | reformatter.py | 593 def _NoBlankLinesBeforeCurrentToken(text, cur_token, prev_token): argument 613 cur_token_lineno = cur_token.lineno 614 if cur_token.is_comment: 615 cur_token_lineno -= cur_token.value.count('\n')
|
/external/perfetto/src/traced/probes/sys_stats/ |
D | sys_stats_data_source.cc | 276 words.cur_token()[words.cur_token_size() - 1] = '\0'; in ReadMeminfo() 277 auto it = meminfo_counters_.find(words.cur_token()); in ReadMeminfo() 283 auto value = static_cast<uint64_t>(strtoll(words.cur_token(), nullptr, 10)); in ReadMeminfo() 299 auto it = vmstat_counters_.find(words.cur_token()); in ReadVmstat() 305 auto value = static_cast<uint64_t>(strtoll(words.cur_token(), nullptr, 10)); in ReadVmstat() 324 words.cur_token_size() > 3 && !strncmp(words.cur_token(), "cpu", 3)) { in ReadStat() 325 long cpu_id = strtol(words.cur_token() + 3, nullptr, 10); in ReadStat() 329 static_cast<uint64_t>(strtoll(words.cur_token(), nullptr, 10)); in ReadStat() 343 !strcmp(words.cur_token(), "intr")) { in ReadStat() 345 auto v = static_cast<uint64_t>(strtoll(words.cur_token(), nullptr, 10)); in ReadStat() [all …]
|
/external/perfetto/src/trace_processor/sqlite/ |
D | query_constraints.cc | 116 long num_constraints = strtol(splitter.cur_token() + 1, nullptr, 10); in FromString() 119 int col = static_cast<int>(strtol(splitter.cur_token(), nullptr, 10)); in FromString() 122 static_cast<unsigned char>(strtol(splitter.cur_token(), nullptr, 10)); in FromString() 128 long num_order_by = strtol(splitter.cur_token() + 1, nullptr, 10); in FromString() 131 int col = static_cast<int>(strtol(splitter.cur_token(), nullptr, 10)); in FromString() 134 static_cast<unsigned char>(strtol(splitter.cur_token(), nullptr, 10)); in FromString()
|
/external/perfetto/src/trace_processor/importers/ninja/ |
D | ninja_log_parser.cc | 51 if (!base::StartsWith(line.cur_token(), kHeader)) in Parse() 54 auto version = base::CStringToUInt32(line.cur_token() + strlen(kHeader)); in Parse() 83 auto t_start = base::CStringToInt64(tok.Next() ? tok.cur_token() : ""); in Parse() 84 auto t_end = base::CStringToInt64(tok.Next() ? tok.cur_token() : ""); in Parse() 86 const char* name = tok.Next() ? tok.cur_token() : nullptr; in Parse() 87 auto cmdhash = base::CStringToUInt64(tok.Next() ? tok.cur_token() : "", 16); in Parse()
|
/external/perfetto/src/profiling/ |
D | deobfuscator.cc | 46 std::string deobfuscated_name(ss.cur_token(), ss.cur_token_size()); in ParseClass() 49 strncmp("->", ss.cur_token(), 2) != 0) { in ParseClass() 58 std::string obfuscated_name(ss.cur_token(), ss.cur_token_size()); in ParseClass() 95 std::string type_name(ss.cur_token(), ss.cur_token_size()); in ParseMember() 101 std::string deobfuscated_name(ss.cur_token(), ss.cur_token_size()); in ParseMember() 104 strncmp("->", ss.cur_token(), 2) != 0) { in ParseMember() 113 std::string obfuscated_name(ss.cur_token(), ss.cur_token_size()); in ParseMember() 207 auto status = AddLine(lines.cur_token()); in AddLines() 287 std::string token(sp.cur_token(), sp.cur_token_size()); in GetPerfettoProguardMapPath()
|
/external/perfetto/tools/dump_ftrace_stats/ |
D | main.cc | 86 if (base::StartsWith(splitter.cur_token(), "overrun")) { in DumpAllCpuStats() 88 } else if (base::StartsWith(splitter.cur_token(), "commit overrun")) { in DumpAllCpuStats() 95 writer.AppendInt(ExtractInt(splitter.cur_token())); in DumpAllCpuStats()
|
/external/perfetto/src/traced/probes/filesystem/ |
D | fs_mount.cc | 41 PERFETTO_DLOG("Invalid mount point: %s.", lines.cur_token()); in ParseMounts() 44 const char* mountpoint = words.cur_token(); in ParseMounts()
|
D | prefix_finder.cc | 86 char* token = s.cur_token(); in AddPath() 112 char* token = s.cur_token(); in GetPrefix()
|
/external/perfetto/src/traced/probes/android_log/ |
D | android_log_data_source.cc | 479 if (!ParseEventLogDefinitionLine(ss.cur_token(), ss.cur_token_size() + 1)) { in ParseEventLogDefinitions() 480 PERFETTO_DLOG("Could not parse event log format: %s", ss.cur_token()); in ParseEventLogDefinitions() 489 auto id = static_cast<uint32_t>(std::strtoul(tok.cur_token(), nullptr, 10)); in ParseEventLogDefinitionLine() 492 std::string name(tok.cur_token(), tok.cur_token_size()); in ParseEventLogDefinitionLine() 494 char* format = tok.cur_token() + tok.cur_token_size() + 1; in ParseEventLogDefinitionLine() 511 char* start = field.cur_token() + 1; in ParseEventLogDefinitionLine() 517 std::string field_name(parts.cur_token(), parts.cur_token_size()); in ParseEventLogDefinitionLine()
|
/external/perfetto/src/trace_processor/importers/systrace/ |
D | systrace_line_parser.cc | 65 if (!base::Contains(ss.cur_token(), "=")) { in ParseLine() 67 value = ss.cur_token(); in ParseLine() 71 for (base::StringSplitter inner(ss.cur_token(), '='); inner.Next();) { in ParseLine() 73 key = inner.cur_token(); in ParseLine() 75 value = inner.cur_token(); in ParseLine()
|
/external/perfetto/src/traced/probes/ftrace/format_parser/ |
D | format_parser.cc | 60 const char* line = ss->cur_token(); in ParseFtraceEventBody() 145 const char* line = ss.cur_token(); in ParseFtraceEvent()
|
/external/perfetto/include/perfetto/ext/base/ |
D | string_splitter.h | 53 char* cur_token() { return cur_; } in cur_token() function
|
/external/perfetto/src/tracing/ |
D | track.cc | 66 std::string(splitter.cur_token(), splitter.cur_token_size())); in Serialize() 140 return base::CStringToUInt64(splitter.cur_token()).value_or(0u); in GetProcessStartTime()
|
/external/perfetto/src/traced/probes/ps/ |
D | process_stats_data_source.cc | 254 proc->add_cmdline(ss.cur_token()); in WriteProcess() 618 std::string line(entries.cur_token()); in WriteThreadStats() 626 uint32_t freq = ToU32(key_value.cur_token()); in WriteThreadStats() 630 auto maybe_ticks = base::CStringToUInt64(key_value.cur_token()); in WriteThreadStats()
|
/external/perfetto/src/profiling/common/ |
D | producer_support.cc | 82 if (!ReadPackagesListLine(ss.cur_token(), &pkg)) { in CanProfileAndroid()
|
D | callstack_trie.cc | 110 map.path_components.emplace_back(string_interner_.Intern(sp.cur_token())); in InternCodeLocation()
|
/external/perfetto/src/traced/probes/common/ |
D | cpu_freq_info.cc | 37 auto freq = base::StringToUInt32(entries.cur_token()); in ReadAndAppendFreqs()
|
/external/perfetto/src/trace_processor/ |
D | trace_processor_impl.cc | 956 if (strncmp(sp.cur_token(), "--", 2) != 0) { in RegisterMetric() 957 stripped_sql.append(sp.cur_token()); in RegisterMetric() 1085 arg_proto->set_key(s.cur_token()); in DisableAndReadMetatrace() 1089 arg_proto->set_value(s.cur_token()); in DisableAndReadMetatrace()
|