Project

General

Profile

« Previous | Next » 

Revision 1584

bin/map: When profiling, print the profile_to destination file

View differences:

bin/map
306 306
    profile_to = opts.get_env_var('profile_to', None)
307 307
    if profile_to != None:
308 308
        import cProfile
309
        sys.stderr.write('Profiling to '+profile_to+'\n')
309 310
        cProfile.run(main.func_code, profile_to)
310 311
    else: main()

Also available in: Unified diff