OLD | NEW |
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 Loading... |
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); | |
66 virtual void start(ErrorString* = 0); | 65 virtual void start(ErrorString* = 0); |
67 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::ProfileHeader>
& header); | 66 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::ProfileHeader>
& header); |
68 | 67 |
69 bool enabled(); | 68 bool enabled(); |
70 String getCurrentUserInitiatedProfileName(bool incrementProfileNumber = fals
e); | 69 String getCurrentUserInitiatedProfileName(bool incrementProfileNumber = fals
e); |
71 virtual void getProfileHeaders(ErrorString*, RefPtr<TypeBuilder::Array<TypeB
uilder::Profiler::ProfileHeader> >&); | 70 virtual void getProfileHeaders(ErrorString*, RefPtr<TypeBuilder::Array<TypeB
uilder::Profiler::ProfileHeader> >&); |
72 virtual void getCPUProfile(ErrorString*, int uid, RefPtr<TypeBuilder::Profil
er::CPUProfile>&); | 71 virtual void getCPUProfile(ErrorString*, int uid, RefPtr<TypeBuilder::Profil
er::CPUProfile>&); |
73 virtual void removeProfile(ErrorString*, const String& type, int uid); | 72 virtual void removeProfile(ErrorString*, const String& type, int uid); |
74 | 73 |
75 virtual void setFrontend(InspectorFrontend*); | 74 virtual void setFrontend(InspectorFrontend*); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 double m_idleStartTime; | 106 double m_idleStartTime; |
108 | 107 |
109 void idleStarted(); | 108 void idleStarted(); |
110 void idleFinished(); | 109 void idleFinished(); |
111 }; | 110 }; |
112 | 111 |
113 } // namespace WebCore | 112 } // namespace WebCore |
114 | 113 |
115 | 114 |
116 #endif // !defined(InspectorProfilerAgent_h) | 115 #endif // !defined(InspectorProfilerAgent_h) |
OLD | NEW |