Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: Source/core/inspector/InspectorProfilerAgent.h

Issue 23690005: Allow configuring CPU profiler sampling interval (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
« no previous file with comments | « Source/bindings/v8/ScriptProfiler.cpp ('k') | Source/core/inspector/InspectorProfilerAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 static PassOwnPtr<InspectorProfilerAgent> create(InstrumentingAgents*, Inspe ctorConsoleAgent*, InspectorCompositeState*, InjectedScriptManager*); 55 static PassOwnPtr<InspectorProfilerAgent> create(InstrumentingAgents*, Inspe ctorConsoleAgent*, InspectorCompositeState*, InjectedScriptManager*);
56 virtual ~InspectorProfilerAgent(); 56 virtual ~InspectorProfilerAgent();
57 57
58 void addProfile(PassRefPtr<ScriptProfile> prpProfile, PassRefPtr<ScriptCallS tack>); 58 void addProfile(PassRefPtr<ScriptProfile> prpProfile, PassRefPtr<ScriptCallS tack>);
59 void addProfileFinishedMessageToConsole(PassRefPtr<ScriptProfile>, unsigned lineNumber, const String& sourceURL); 59 void addProfileFinishedMessageToConsole(PassRefPtr<ScriptProfile>, unsigned lineNumber, const String& sourceURL);
60 void addStartProfilingMessageToConsole(const String& title, unsigned lineNum ber, const String& sourceURL); 60 void addStartProfilingMessageToConsole(const String& title, unsigned lineNum ber, const String& sourceURL);
61 virtual void clearProfiles(ErrorString*); 61 virtual void clearProfiles(ErrorString*);
62 62
63 virtual void enable(ErrorString*); 63 virtual void enable(ErrorString*);
64 virtual void disable(ErrorString*); 64 virtual void disable(ErrorString*);
65 virtual void setSamplingInterval(ErrorString*, int);
65 virtual void start(ErrorString* = 0); 66 virtual void start(ErrorString* = 0);
66 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::ProfileHeader> & header); 67 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::ProfileHeader> & header);
67 68
68 bool enabled(); 69 bool enabled();
69 String getCurrentUserInitiatedProfileName(bool incrementProfileNumber = fals e); 70 String getCurrentUserInitiatedProfileName(bool incrementProfileNumber = fals e);
70 virtual void getProfileHeaders(ErrorString*, RefPtr<TypeBuilder::Array<TypeB uilder::Profiler::ProfileHeader> >&); 71 virtual void getProfileHeaders(ErrorString*, RefPtr<TypeBuilder::Array<TypeB uilder::Profiler::ProfileHeader> >&);
71 virtual void getCPUProfile(ErrorString*, int uid, RefPtr<TypeBuilder::Profil er::CPUProfile>&); 72 virtual void getCPUProfile(ErrorString*, int uid, RefPtr<TypeBuilder::Profil er::CPUProfile>&);
72 virtual void removeProfile(ErrorString*, const String& type, int uid); 73 virtual void removeProfile(ErrorString*, const String& type, int uid);
73 74
74 virtual void setFrontend(InspectorFrontend*); 75 virtual void setFrontend(InspectorFrontend*);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 double m_idleStartTime; 107 double m_idleStartTime;
107 108
108 void idleStarted(); 109 void idleStarted();
109 void idleFinished(); 110 void idleFinished();
110 }; 111 };
111 112
112 } // namespace WebCore 113 } // namespace WebCore
113 114
114 115
115 #endif // !defined(InspectorProfilerAgent_h) 116 #endif // !defined(InspectorProfilerAgent_h)
OLDNEW
« no previous file with comments | « Source/bindings/v8/ScriptProfiler.cpp ('k') | Source/core/inspector/InspectorProfilerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698