OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 addRecordToTimeline(record.release(), time); | 254 addRecordToTimeline(record.release(), time); |
255 if (m_state->getBoolean(TimelineAgentState::includeCounters)) { | 255 if (m_state->getBoolean(TimelineAgentState::includeCounters)) { |
256 addRecordToTimeline(createCountersUpdate(), time); | 256 addRecordToTimeline(createCountersUpdate(), time); |
257 } | 257 } |
258 } | 258 } |
259 | 259 |
260 InspectorTimelineAgent::~InspectorTimelineAgent() | 260 InspectorTimelineAgent::~InspectorTimelineAgent() |
261 { | 261 { |
262 } | 262 } |
263 | 263 |
| 264 void InspectorTimelineAgent::trace(Visitor* visitor) |
| 265 { |
| 266 visitor->trace(m_pageAgent); |
| 267 visitor->trace(m_layerTreeAgent); |
| 268 InspectorBaseAgent::trace(visitor); |
| 269 } |
| 270 |
264 void InspectorTimelineAgent::setFrontend(InspectorFrontend* frontend) | 271 void InspectorTimelineAgent::setFrontend(InspectorFrontend* frontend) |
265 { | 272 { |
266 m_frontend = frontend->timeline(); | 273 m_frontend = frontend->timeline(); |
267 } | 274 } |
268 | 275 |
269 void InspectorTimelineAgent::clearFrontend() | 276 void InspectorTimelineAgent::clearFrontend() |
270 { | 277 { |
271 ErrorString error; | 278 ErrorString error; |
272 RefPtr<TypeBuilder::Array<TimelineEvent> > events; | 279 RefPtr<TypeBuilder::Array<TimelineEvent> > events; |
273 stop(&error, events); | 280 stop(&error, events); |
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1305 | 1312 |
1306 #ifndef NDEBUG | 1313 #ifndef NDEBUG |
1307 bool TimelineRecordStack::isOpenRecordOfType(const String& type) | 1314 bool TimelineRecordStack::isOpenRecordOfType(const String& type) |
1308 { | 1315 { |
1309 return !m_stack.isEmpty() && m_stack.last().type == type; | 1316 return !m_stack.isEmpty() && m_stack.last().type == type; |
1310 } | 1317 } |
1311 #endif | 1318 #endif |
1312 | 1319 |
1313 } // namespace WebCore | 1320 } // namespace WebCore |
1314 | 1321 |
OLD | NEW |