Lines Matching refs:file_period
320 file_period = self.file_periods.get(source.file)
321 if file_period is None:
322 file_period = self.file_periods[source.file] = FilePeriod(source.file)
323 file_period.add_period(period)
328 file_period = self.file_periods[source.file]
329 file_period.add_line_period(source.line, period)
334 file_period = self.file_periods[source.file]
335 file_period.add_function_period(source.function, source.line, period)
350 for file_period in file_periods:
351 f.write('file %s: %s\n' % (file_period.file,
352 self._get_percentage_str(file_period.period)))
353 for file_period in file_periods:
354 f.write('\n\n%s: %s\n' % (file_period.file,
355 self._get_percentage_str(file_period.period)))
357 for func_name in file_period.function_dict.keys():
358 func_start_line, period = file_period.function_dict[func_name]
365 for line in sorted(file_period.line_dict.keys()):
367 line, self._get_percentage_str(file_period.line_dict[line])))
400 def _annotate_file(self, from_path, to_path, file_period, is_java): argument
414 for line in file_period.line_dict.keys():
415 annotates[line] = self._get_percentage_str(file_period.line_dict[line], True)
416 for func_name in file_period.function_dict.keys():
417 func_start_line, period = file_period.function_dict[func_name]
422 annotates[1] = '[file] ' + self._get_percentage_str(file_period.period, True)