Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: content/public/common/content_switches.cc

Issue 23691025: Adding shutdown tracing capabilities (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // By default, file:// URIs cannot read other file:// URIs. This is an 9 // By default, file:// URIs cannot read other file:// URIs. This is an
10 // override for developers who need the old behavior for testing. 10 // override for developers who need the old behavior for testing.
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 // sending them to the renderer. 786 // sending them to the renderer.
787 const char kTapDownDeferralTimeMs[] = "tap-down-deferral-time"; 787 const char kTapDownDeferralTimeMs[] = "tap-down-deferral-time";
788 788
789 // Allows for forcing socket connections to http/https to use fixed ports. 789 // Allows for forcing socket connections to http/https to use fixed ports.
790 const char kTestingFixedHttpPort[] = "testing-fixed-http-port"; 790 const char kTestingFixedHttpPort[] = "testing-fixed-http-port";
791 const char kTestingFixedHttpsPort[] = "testing-fixed-https-port"; 791 const char kTestingFixedHttpsPort[] = "testing-fixed-https-port";
792 792
793 // Runs the security test for the renderer sandbox. 793 // Runs the security test for the renderer sandbox.
794 const char kTestSandbox[] = "test-sandbox"; 794 const char kTestSandbox[] = "test-sandbox";
795 795
796 // Causes TRACE_EVENT flags to be recorded beginning with shutdown. Optionally,
797 // can specify the specific trace categories to include (e.g.
798 // --trace-shutdown=base,net) otherwise, all events are recorded. Setting this
799 // flag results in the first call to BeginTracing() to receive all trace events
James Cook 2013/08/30 22:54:02 Is the part of the comment about BeginTracing() ac
Mr4D (OOO till 08-26) 2013/08/31 02:03:44 Done.
800 // since startup. In Chrome, you may find --trace-shutdown-file to control the
801 // auto-saving of the trace (not supported in the base-only TraceLog component).
802 const char kTraceShutdown[] = "trace-shutdown";
803
804 // If supplied, sets the file which shutdown tracing will be stored into, if
805 // omitted the default will be used "chrometrace.log" in the current directory.
James Cook 2013/08/30 22:54:02 Update this to match the other filename if you cha
Mr4D (OOO till 08-26) 2013/08/31 02:03:44 Somehow .json for logfiles makes no sense. ".json"
806 // Has no effect unless --trace-shutdown is also supplied.
807 // Example: --trace-shutdown --trace-shutdown-file=/tmp/trace_event.log
808 const char kTraceShutdownFile[] = "trace-shutdown-file";
809
796 // Causes TRACE_EVENT flags to be recorded from startup. Optionally, can 810 // Causes TRACE_EVENT flags to be recorded from startup. Optionally, can
797 // specify the specific trace categories to include (e.g. 811 // specify the specific trace categories to include (e.g.
798 // --trace-startup=base,net) otherwise, all events are recorded. Setting this 812 // --trace-startup=base,net) otherwise, all events are recorded. Setting this
799 // flag results in the first call to BeginTracing() to receive all trace events 813 // flag results in the first call to BeginTracing() to receive all trace events
800 // since startup. In Chrome, you may find --trace-startup-file and 814 // since startup. In Chrome, you may find --trace-startup-file and
801 // --trace-startup-duration to control the auto-saving of the trace (not 815 // --trace-startup-duration to control the auto-saving of the trace (not
802 // supported in the base-only TraceLog component). 816 // supported in the base-only TraceLog component).
803 const char kTraceStartup[] = "trace-startup"; 817 const char kTraceStartup[] = "trace-startup";
804 818
805 // Sets the time in seconds until startup tracing ends. If omitted a default of 819 // Sets the time in seconds until startup tracing ends. If omitted a default of
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 #endif 957 #endif
944 958
945 #if defined(USE_AURA) 959 #if defined(USE_AURA)
946 // Forces usage of the test compositor. Needed to run ui tests on bots. 960 // Forces usage of the test compositor. Needed to run ui tests on bots.
947 extern const char kTestCompositor[] = "test-compositor"; 961 extern const char kTestCompositor[] = "test-compositor";
948 #endif 962 #endif
949 963
950 // Don't dump stuff here, follow the same order as the header. 964 // Don't dump stuff here, follow the same order as the header.
951 965
952 } // namespace switches 966 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698