def get_profiler_statistics(sort="<STR_LIT>", count=<NUM_LIT:20>, strip_dirs=True):
json_stats = []<EOL>pstats = yappi.convert2pstats(yappi.get_func_stats())<EOL>if strip_dirs:<EOL><INDENT>pstats.strip_dirs()<EOL><DEDENT>for func, func_stat in pstats.stats.iteritems():<EOL><INDENT>path, line, func_name = func<EOL>cc, num_calls, total_time, cum_time, callers = func_stat<EOL>json_stats.append({<EOL>"<STR_LIT:path>": path,<EOL>"<STR_LIT>": line,<EOL>"<STR_LIT>": func_name,<EOL>"<STR_LIT>": num_calls,<EOL>"<STR_LIT>": total_time,<EOL>"<STR_LIT>": total_time/num_calls if total_time else <NUM_LIT:0>,<EOL>"<STR_LIT>": cum_time,<EOL>"<STR_LIT>": cum_time/num_calls if cum_time else <NUM_LIT:0><EOL>})<EOL><DEDENT>return sorted(json_stats, key=itemgetter(sort), reverse=True)[:count]<EOL>
Return profiler statistics.

    :param str sort: dictionary key to sort by
    :param int|None count: the number of results to return, None returns all results.
    :param bool strip_dirs: if True strip the directory, otherwise return the full path