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

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

Issue 24027002: DevTools: implement console.timeline/timelineEnd. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comments addressed. 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 /* 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 typedef String ErrorString; 50 typedef String ErrorString;
51 51
52 class InspectorProfilerAgent : public InspectorBaseAgent<InspectorProfilerAgent> , public InspectorBackendDispatcher::ProfilerCommandHandler { 52 class InspectorProfilerAgent : public InspectorBaseAgent<InspectorProfilerAgent> , public InspectorBackendDispatcher::ProfilerCommandHandler {
53 WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); WTF_MAKE_FAST_ALLOCATED; 53 WTF_MAKE_NONCOPYABLE(InspectorProfilerAgent); WTF_MAKE_FAST_ALLOCATED;
54 public: 54 public:
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);
61 virtual void clearProfiles(ErrorString*); 60 virtual void clearProfiles(ErrorString*);
62 61
63 virtual void enable(ErrorString*); 62 virtual void enable(ErrorString*);
64 virtual void disable(ErrorString*); 63 virtual void disable(ErrorString*);
65 virtual void start(ErrorString* = 0); 64 virtual void start(ErrorString* = 0);
66 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::ProfileHeader> & header); 65 virtual void stop(ErrorString*, RefPtr<TypeBuilder::Profiler::ProfileHeader> & header);
67 66
68 bool enabled(); 67 bool enabled();
69 String getCurrentUserInitiatedProfileName(bool incrementProfileNumber = fals e); 68 String getCurrentUserInitiatedProfileName(bool incrementProfileNumber = fals e);
70 virtual void getProfileHeaders(ErrorString*, RefPtr<TypeBuilder::Array<TypeB uilder::Profiler::ProfileHeader> >&); 69 virtual void getProfileHeaders(ErrorString*, RefPtr<TypeBuilder::Array<TypeB uilder::Profiler::ProfileHeader> >&);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 double m_idleStartTime; 105 double m_idleStartTime;
107 106
108 void idleStarted(); 107 void idleStarted();
109 void idleFinished(); 108 void idleFinished();
110 }; 109 };
111 110
112 } // namespace WebCore 111 } // namespace WebCore
113 112
114 113
115 #endif // !defined(InspectorProfilerAgent_h) 114 #endif // !defined(InspectorProfilerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698