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

Side by Side Diff: Source/core/inspector/InspectorTimelineAgent.cpp

Issue 212953003: TimelinePanel: provide scriptId in FunctionCall event. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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) 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 { 445 {
446 TraceEventDispatcher::instance()->processBackgroundEvents(); 446 TraceEventDispatcher::instance()->processBackgroundEvents();
447 m_pendingFrameRecord = TimelineRecordFactory::createGenericRecord(timestamp( ), 0, TimelineRecordType::BeginFrame, TimelineRecordFactory::createFrameData(fra meId)); 447 m_pendingFrameRecord = TimelineRecordFactory::createGenericRecord(timestamp( ), 0, TimelineRecordType::BeginFrame, TimelineRecordFactory::createFrameData(fra meId));
448 } 448 }
449 449
450 void InspectorTimelineAgent::didCancelFrame() 450 void InspectorTimelineAgent::didCancelFrame()
451 { 451 {
452 m_pendingFrameRecord.clear(); 452 m_pendingFrameRecord.clear();
453 } 453 }
454 454
455 bool InspectorTimelineAgent::willCallFunction(ExecutionContext* context, const S tring& scriptName, int scriptLine) 455 bool InspectorTimelineAgent::willCallFunction(ExecutionContext* context, int scr iptId, const String& scriptName, int scriptLine)
456 { 456 {
457 pushCurrentRecord(TimelineRecordFactory::createFunctionCallData(scriptName, scriptLine), TimelineRecordType::FunctionCall, true, frameForExecutionContext(co ntext)); 457 pushCurrentRecord(TimelineRecordFactory::createFunctionCallData(scriptId, sc riptName, scriptLine), TimelineRecordType::FunctionCall, true, frameForExecution Context(context));
458 return true; 458 return true;
459 } 459 }
460 460
461 void InspectorTimelineAgent::didCallFunction() 461 void InspectorTimelineAgent::didCallFunction()
462 { 462 {
463 didCompleteCurrentRecord(TimelineRecordType::FunctionCall); 463 didCompleteCurrentRecord(TimelineRecordType::FunctionCall);
464 } 464 }
465 465
466 bool InspectorTimelineAgent::willDispatchEvent(Document* document, const Event& event, DOMWindow* window, Node* node, const EventPath& eventPath) 466 bool InspectorTimelineAgent::willDispatchEvent(Document* document, const Event& event, DOMWindow* window, Node* node, const EventPath& eventPath)
467 { 467 {
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 1332
1333 #ifndef NDEBUG 1333 #ifndef NDEBUG
1334 bool TimelineRecordStack::isOpenRecordOfType(const String& type) 1334 bool TimelineRecordStack::isOpenRecordOfType(const String& type)
1335 { 1335 {
1336 return !m_stack.isEmpty() && m_stack.last().type == type; 1336 return !m_stack.isEmpty() && m_stack.last().type == type;
1337 } 1337 }
1338 #endif 1338 #endif
1339 1339
1340 } // namespace WebCore 1340 } // namespace WebCore
1341 1341
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698