/external/perfetto/src/base/ |
D | string_splitter_unittest.cc | 33 EXPECT_EQ(nullptr, ss.cur_token()); in TEST() 36 EXPECT_EQ(nullptr, ss.cur_token()); in TEST() 41 EXPECT_EQ(nullptr, ss.cur_token()); in TEST() 44 EXPECT_EQ(nullptr, ss.cur_token()); in TEST() 49 EXPECT_EQ(nullptr, ss.cur_token()); in TEST() 52 EXPECT_STREQ("a", ss.cur_token()); in TEST() 60 EXPECT_STREQ("abc", ss.cur_token()); in TEST() 67 EXPECT_STREQ("ab", ss.cur_token()); in TEST() 74 EXPECT_STREQ("ab", ss.cur_token()); in TEST() 82 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 | format_parser.cc | 59 const char* line = ss->cur_token(); in ParseFtraceEventBody() 143 const char* line = ss.cur_token(); in ParseFtraceEvent()
|
/external/python/cpython3/Parser/ |
D | asdl.py | 253 self.cur_token = None 267 'Expected "module" (found {})'.format(self.cur_token.value), 268 self.cur_token.lineno) 277 while self.cur_token.kind == TokenKind.TypeId: 285 if self.cur_token.kind == TokenKind.LParen: 292 while self.cur_token.kind == TokenKind.Pipe: 306 while self.cur_token.kind == TokenKind.TypeId: 309 id = (self._advance() if self.cur_token.kind in self._id_kinds 312 if self.cur_token.kind == TokenKind.RParen: 314 elif self.cur_token.kind == TokenKind.Comma: [all …]
|
/external/perfetto/src/traced/probes/packages_list/ |
D | packages_list_data_source.cc | 62 package->name = std::string(ss.cur_token(), ss.cur_token_size()); in ReadPackagesListLine() 66 long long uid = strtoll(ss.cur_token(), &end, 10); in ReadPackagesListLine() 67 if ((*end != '\0' && *end != '\n') || *ss.cur_token() == '\0') { in ReadPackagesListLine() 76 long long debuggable = strtoll(ss.cur_token(), &end, 10); in ReadPackagesListLine() 77 if ((*end != '\0' && *end != '\n') || *ss.cur_token() == '\0') { in ReadPackagesListLine() 86 long long profilable_from_shell = strtoll(ss.cur_token(), &end, 10); in ReadPackagesListLine() 87 if ((*end != '\0' && *end != '\n') || *ss.cur_token() == '\0') { in ReadPackagesListLine() 96 long long version_code = strtoll(ss.cur_token(), &end, 10); in ReadPackagesListLine() 97 if ((*end != '\0' && *end != '\n') || *ss.cur_token() == '\0') { in ReadPackagesListLine() 99 ss.cur_token()); in ReadPackagesListLine()
|
/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 | 193 words.cur_token()[words.cur_token_size() - 1] = '\0'; in ReadMeminfo() 194 auto it = meminfo_counters_.find(words.cur_token()); in ReadMeminfo() 200 auto value = static_cast<uint64_t>(strtoll(words.cur_token(), nullptr, 10)); in ReadMeminfo() 216 auto it = vmstat_counters_.find(words.cur_token()); in ReadVmstat() 222 auto value = static_cast<uint64_t>(strtoll(words.cur_token(), nullptr, 10)); in ReadVmstat() 241 words.cur_token_size() > 3 && !strncmp(words.cur_token(), "cpu", 3)) { in ReadStat() 242 long cpu_id = strtol(words.cur_token() + 3, nullptr, 10); in ReadStat() 246 static_cast<uint64_t>(strtoll(words.cur_token(), nullptr, 10)); in ReadStat() 260 !strcmp(words.cur_token(), "intr")) { in ReadStat() 262 auto v = static_cast<uint64_t>(strtoll(words.cur_token(), nullptr, 10)); in ReadStat() [all …]
|
/external/perfetto/src/trace_processor/ |
D | query_constraints.cc | 112 long num_constraints = strtol(splitter.cur_token() + 1, nullptr, 10); in FromString() 115 int col = static_cast<int>(strtol(splitter.cur_token(), nullptr, 10)); in FromString() 118 static_cast<unsigned char>(strtol(splitter.cur_token(), nullptr, 10)); in FromString() 124 long num_order_by = strtol(splitter.cur_token() + 1, nullptr, 10); in FromString() 127 int col = static_cast<int>(strtol(splitter.cur_token(), nullptr, 10)); in FromString() 130 static_cast<unsigned char>(strtol(splitter.cur_token(), nullptr, 10)); in FromString()
|
D | span_join_operator_table.cc | 695 descriptor.name = splitter.cur_token(); in Parse() 699 if (strcasecmp(splitter.cur_token(), "PARTITIONED") != 0) { in Parse() 700 PERFETTO_ELOG("Invalid SPAN_JOIN token %s", splitter.cur_token()); in Parse() 708 descriptor.partition_col = splitter.cur_token(); in Parse()
|
D | trace_processor_shell.cc | 599 metrics.emplace_back(ss.cur_token()); in TraceProcessorMain()
|
/external/perfetto/src/traced/probes/android_log/ |
D | android_log_data_source.cc | 462 if (!ParseEventLogDefinitionLine(ss.cur_token(), ss.cur_token_size() + 1)) { in ParseEventLogDefinitions() 463 PERFETTO_DLOG("Could not parse event log format: %s", ss.cur_token()); in ParseEventLogDefinitions() 472 auto id = static_cast<uint32_t>(std::strtoul(tok.cur_token(), nullptr, 10)); in ParseEventLogDefinitionLine() 475 std::string name(tok.cur_token(), tok.cur_token_size()); in ParseEventLogDefinitionLine() 477 char* format = tok.cur_token() + tok.cur_token_size() + 1; in ParseEventLogDefinitionLine() 494 char* start = field.cur_token() + 1; in ParseEventLogDefinitionLine() 500 std::string field_name(parts.cur_token(), parts.cur_token_size()); in ParseEventLogDefinitionLine()
|
/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 | 76 char* token = s.cur_token(); in AddPath() 102 char* token = s.cur_token(); in GetPrefix()
|
/external/perfetto/include/perfetto/base/ |
D | string_splitter.h | 53 char* cur_token() { return cur_; } in cur_token() function
|
/external/perfetto/src/profiling/memory/ |
D | bookkeeping.cc | 243 map.path_components.emplace_back(string_interner_.Intern(sp.cur_token())); in InternCodeLocation()
|
/external/perfetto/src/traced/probes/ps/ |
D | process_stats_data_source.cc | 236 proc->add_cmdline(ss.cur_token()); in WriteProcess()
|