Lines Matching refs:source

18 """annotate.py: annotate source files based on perf.data.
54 # of the first instruction which can be mapped to source line.
78 # store a list of source files
155 source files with no conflicts in path.
191 for source in item:
192 source_lines.append(SourceLine(self.file_list[source.file],
193 source.function, source.line))
211 of a line, a function, a source file, or a binary. It contains two
216 when it is used for a function, a source file, or a binary.
241 """Period for each source file"""
247 # Period for each function in the source file.
272 """group code for annotating source files"""
291 log_exit('Please set source directories.')
328 source file:line.
381 binaries, source files, functions, lines.
425 # Add period to source file.
427 for source in sources:
428 if source.file:
429 self._add_file_period(source, period, used_file_dict)
431 if source.line:
432 self._add_line_period(source, period, used_line_dict)
435 for source in sources:
436 if source.file:
437 self._add_file_period(source, period, used_file_dict)
438 if source.function:
439 self._add_function_period(source, period, used_function_dict)
454 def _add_file_period(self, source, period, used_file_dict):
455 if source.file_key not in used_file_dict:
456 used_file_dict[source.file_key] = True
457 file_period = self.file_periods.get(source.file)
459 file_period = self.file_periods[source.file] = FilePeriod(source.file)
463 def _add_line_period(self, source, period, used_line_dict):
464 if source.line_key not in used_line_dict:
465 used_line_dict[source.line_key] = True
466 file_period = self.file_periods[source.file]
467 file_period.add_line_period(source.line, period)
470 def _add_function_period(self, source, period, used_function_dict):
471 if source.function_key not in used_function_dict:
472 used_function_dict[source.function_key] = True
473 file_period = self.file_periods[source.file]
474 file_period.add_function_period(source.function, source.line, period)
548 log_warning('multiple source for %s, select %s' % (file, result))
553 """Annotate Source files: add acc_period/period for each source file.
554 1. Annotate java source files, which have $JAVA_SRC_ROOT prefix.
555 2. Annotate c++ source files.
581 log_warning("can't find source file for path %s" % key)
587 """Annotate a source file.
589 Annotate a source file in three steps:
635 """Annotate source files based on profiling data. It reads line information from
637 generate annotated source files in annotated_files directory.""")
641 """Directories to find source files.""")