• skuhne@chromium.org's avatar
    Adding shutdown tracing capabilities · 89af4002
    skuhne@chromium.org authored
    use "--trace-shutdown" to enable the feature to start profiling when the user has pressed "shutdown" and specify "--trace-shutdown-file=<name>" to specify the file where you want to dump to. Additionally you can specify which modules to trace with e.g. "--trace-shutdown=base,net".
    
    That said: NOTE that the dumping will cost time since it has to be done after the shutdown of Chrome is finished. As such it takes time and will make it impossible to get a correct reading of time from shutdown till a new startup is finished.
    
    Note: This is similar to the trace-startup - with the exception that upon shutdown it is not possible to rely on threads for IO anymore.
    
    BUG=281524
    TEST=visual tests
    
    Review URL: https://chromiumcodereview.appspot.com/23691025
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221631 0039d316-1c4b-4281-b951-d872f2087c98
    89af4002
browser_shutdown_profile_dumper.cc 3.15 KB