def prof_flame(args): sample_producer = lambda traces: prof.get_hit_profile( traces, get_trace_filter(args)) resolver = symbol_resolver(args) time_range = get_time_range(args) with get_trace_reader(args) as reader: prof.print_flame_profile( sample_producer(reader.get_traces()), symbol_resolver=resolver, min_hits_count=int(args.min_hits) if args.min_hits else None, time_range=time_range)
def prof_hit(args): show_profile(args, lambda traces: prof.get_hit_profile(traces, args.tracepoint))
def prof_hit(args): show_profile( args, lambda traces: prof.get_hit_profile(traces, get_trace_filter(args)))
def prof_hit(args): if args.tracepoint: filter = lambda trace: trace.name == args.tracepoint else: filter = None show_profile(args, lambda traces: prof.get_hit_profile(traces, filter))
def prof_hit(args): show_profile(args, lambda traces: prof.get_hit_profile(traces, get_trace_filter(args)))