def METHOD_NAME(runsnake=False, dump=False):
    import cProfile
    import pstats
    filename = "orm2010.profile"
    if os.path.exists("orm2010.profile"):
        os.remove("orm2010.profile")
    def status(msg):
        print(msg)
    cProfile.runctx(
        # "runit_persist(status)",
        "runit_persist(status); runit_query_runs(status)",
        globals(),
        locals(),
        filename,
    )
    stats = pstats.Stats(filename)
    counts_by_methname = {key[2]: stats.stats[key][0] for key in stats.stats}
    print("SQLA Version: %s" % __version__)
    print("Total calls %d" % stats.total_calls)
    print("Total cpu seconds: %.2f" % stats.total_tt)
    print(
        "Total execute calls: %d"
        % counts_by_methname[
            "<method 'execute' of 'sqlite3.Cursor' " "objects>"
        ]
    )
    print(
        "Total executemany calls: %d"
        % counts_by_methname.get(
            "<method 'executemany' of 'sqlite3.Cursor' " "objects>", 0
        )
    )
    if dump:
        #        stats.sort_stats("nfl")
        stats.sort_stats("cumtime", "calls")
        stats.print_stats()
    #        stats.print_callers()
    if runsnake:
        os.system("runsnake %s" % filename)