Lines Matching refs:profile
41 profile = profile_pb2.Profile()
43 profile.ParseFromString(f.read())
44 return profile
47 def store_pprof_profile(filename, profile): argument
49 f.write(profile.SerializeToString())
54 def __init__(self, profile): argument
55 self.profile = profile
56 self.string_table = profile.string_table
59 p = self.profile
113 location = self.profile.location[location_id - 1]
127 mapping = self.profile.mapping[mapping_id - 1]
151 function = self.profile.function[function_id - 1]
263 self.profile = profile_pb2.Profile()
264 self.profile.string_table.append('')
339 return self.profile
367 self.profile.string_table.append(str_value)
371 return self.profile.string_table[str_id]
377 sample_type_id = len(self.profile.sample_type)
378 sample_type = self.profile.sample_type.add()
381 sample_type = self.profile.sample_type.add()
549 profile_sample = self.profile.sample.add()
558 profile_mapping = self.profile.mapping.add()
575 profile_location = self.profile.location.add()
585 profile_function = self.profile.function.add()
620 profile = load_pprof_profile(show_file)
621 printer = PprofProfilePrinter(profile)
638 profile = generator.gen()
639 store_pprof_profile(config['output_file'], profile)