Пример #1
0
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)
Пример #2
0
def prof_hit(args):
    show_profile(args, lambda traces: prof.get_hit_profile(traces, args.tracepoint))
Пример #3
0
def prof_hit(args):
    show_profile(
        args,
        lambda traces: prof.get_hit_profile(traces, get_trace_filter(args)))
Пример #4
0
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))
Пример #5
0
def prof_hit(args):
    show_profile(args, lambda traces: prof.get_hit_profile(traces, get_trace_filter(args)))
Пример #6
0
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))
Пример #7
0
def prof_hit(args):
    show_profile(args,
                 lambda traces: prof.get_hit_profile(traces, args.tracepoint))