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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 { | 452 { |
453 TraceEventDispatcher::instance()->processBackgroundEvents(); | 453 TraceEventDispatcher::instance()->processBackgroundEvents(); |
454 m_pendingFrameRecord = TimelineRecordFactory::createGenericRecord(timestamp(
), 0, TimelineRecordType::BeginFrame, TimelineRecordFactory::createFrameData(fra
meId)); | 454 m_pendingFrameRecord = TimelineRecordFactory::createGenericRecord(timestamp(
), 0, TimelineRecordType::BeginFrame, TimelineRecordFactory::createFrameData(fra
meId)); |
455 } | 455 } |
456 | 456 |
457 void InspectorTimelineAgent::didCancelFrame() | 457 void InspectorTimelineAgent::didCancelFrame() |
458 { | 458 { |
459 m_pendingFrameRecord.clear(); | 459 m_pendingFrameRecord.clear(); |
460 } | 460 } |
461 | 461 |
462 bool InspectorTimelineAgent::willCallFunction(ExecutionContext* context, const S
tring& scriptName, int scriptLine) | 462 bool InspectorTimelineAgent::willCallFunction(ExecutionContext* context, int scr
iptId, const String& scriptName, int scriptLine) |
463 { | 463 { |
464 pushCurrentRecord(TimelineRecordFactory::createFunctionCallData(scriptName,
scriptLine), TimelineRecordType::FunctionCall, true, frameForExecutionContext(co
ntext)); | 464 pushCurrentRecord(TimelineRecordFactory::createFunctionCallData(scriptId, sc
riptName, scriptLine), TimelineRecordType::FunctionCall, true, frameForExecution
Context(context)); |
465 return true; | 465 return true; |
466 } | 466 } |
467 | 467 |
468 void InspectorTimelineAgent::didCallFunction() | 468 void InspectorTimelineAgent::didCallFunction() |
469 { | 469 { |
470 didCompleteCurrentRecord(TimelineRecordType::FunctionCall); | 470 didCompleteCurrentRecord(TimelineRecordType::FunctionCall); |
471 } | 471 } |
472 | 472 |
473 bool InspectorTimelineAgent::willDispatchEvent(Document* document, const Event&
event, DOMWindow* window, Node* node, const EventPath& eventPath) | 473 bool InspectorTimelineAgent::willDispatchEvent(Document* document, const Event&
event, DOMWindow* window, Node* node, const EventPath& eventPath) |
474 { | 474 { |
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 | 1355 |
1356 #ifndef NDEBUG | 1356 #ifndef NDEBUG |
1357 bool TimelineRecordStack::isOpenRecordOfType(const String& type) | 1357 bool TimelineRecordStack::isOpenRecordOfType(const String& type) |
1358 { | 1358 { |
1359 return !m_stack.isEmpty() && m_stack.last().type == type; | 1359 return !m_stack.isEmpty() && m_stack.last().type == type; |
1360 } | 1360 } |
1361 #endif | 1361 #endif |
1362 | 1362 |
1363 } // namespace WebCore | 1363 } // namespace WebCore |
1364 | 1364 |
OLD | NEW |