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

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

Issue 212953003: TimelinePanel: provide scriptId in FunctionCall event. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: minor change Created 6 years, 8 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return record.release(); 70 return record.release();
71 } 71 }
72 72
73 PassRefPtr<JSONObject> TimelineRecordFactory::createGCEventData(size_t usedHeapS izeDelta) 73 PassRefPtr<JSONObject> TimelineRecordFactory::createGCEventData(size_t usedHeapS izeDelta)
74 { 74 {
75 RefPtr<JSONObject> data = JSONObject::create(); 75 RefPtr<JSONObject> data = JSONObject::create();
76 data->setNumber("usedHeapSizeDelta", usedHeapSizeDelta); 76 data->setNumber("usedHeapSizeDelta", usedHeapSizeDelta);
77 return data.release(); 77 return data.release();
78 } 78 }
79 79
80 PassRefPtr<JSONObject> TimelineRecordFactory::createFunctionCallData(const Strin g& scriptName, int scriptLine) 80 PassRefPtr<JSONObject> TimelineRecordFactory::createFunctionCallData(int scriptI d, const String& scriptName, int scriptLine)
81 { 81 {
82 RefPtr<JSONObject> data = JSONObject::create(); 82 RefPtr<JSONObject> data = JSONObject::create();
83 data->setString("scriptId", String::number(scriptId));
83 data->setString("scriptName", scriptName); 84 data->setString("scriptName", scriptName);
84 data->setNumber("scriptLine", scriptLine); 85 data->setNumber("scriptLine", scriptLine);
85 return data.release(); 86 return data.release();
86 } 87 }
87 88
88 PassRefPtr<JSONObject> TimelineRecordFactory::createEventDispatchData(const Even t& event) 89 PassRefPtr<JSONObject> TimelineRecordFactory::createEventDispatchData(const Even t& event)
89 { 90 {
90 RefPtr<JSONObject> data = JSONObject::create(); 91 RefPtr<JSONObject> data = JSONObject::create();
91 data->setString("type", event.type().string()); 92 data->setString("type", event.type().string());
92 return data.release(); 93 return data.release();
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 327
327 String TimelineRecordFactory::type(TypeBuilder::Timeline::TimelineEvent* event) 328 String TimelineRecordFactory::type(TypeBuilder::Timeline::TimelineEvent* event)
328 { 329 {
329 String type; 330 String type;
330 event->type(&type); 331 event->type(&type);
331 return type; 332 return type;
332 } 333 }
333 334
334 } // namespace WebCore 335 } // namespace WebCore
335 336
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698