Lines Matching defs:str
63 def removesuffix(s: str, suffix: str) -> str:
72 def file_name_to_table_name(prefix: str, parents: Sequence[str],
73 dirname: str) -> str:
82 def c_len(s: str) -> int:
126 def add(self, s: str, metric: bool) -> None:
174 def string_cmp_key(s: str) -> Tuple[bool, int, str]:
208 def fixdesc(s: str) -> str:
216 def convert_aggr_mode(aggr_mode: str) -> Optional[str]:
226 def convert_metric_constraint(metric_constraint: str) -> Optional[str]:
238 def lookup_msr(num: str) -> Optional[str]:
250 def real_event(name: str, event: str) -> Optional[str]:
266 def unit_to_pmu(unit: str) -> Optional[str]:
404 def read_json_events(path: str, topic: str) -> Sequence[JsonEvent]:
426 def preprocess_arch_std_files(archpath: str) -> None:
438 def add_events_table_entries(item: os.DirEntry, topic: str) -> None:
451 def fix_none(s: Optional[str]) -> str:
507 def fix_none(s: Optional[str]) -> str:
558 def get_topic(topic: str) -> str:
563 def preprocess_one_file(parents: Sequence[str], item: os.DirEntry) -> None:
599 def process_one_file(parents: Sequence[str], item: os.DirEntry) -> None:
601 def is_leaf_dir(path: str) -> bool:
634 def print_mapping_table(archs: Sequence[str]) -> None:
1158 def dir_path(path: str) -> str:
1164 def ftw(path: str, parents: Sequence[str],
1165 action: Callable[[Sequence[str], os.DirEntry], None]) -> None: