OLD | NEW |
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 Loading... |
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 320 |
320 PassRefPtr<JSONObject> TimelineRecordFactory::createEmbedderCallbackData(const S
tring& callbackName) | 321 PassRefPtr<JSONObject> TimelineRecordFactory::createEmbedderCallbackData(const S
tring& callbackName) |
321 { | 322 { |
322 RefPtr<JSONObject> data = JSONObject::create(); | 323 RefPtr<JSONObject> data = JSONObject::create(); |
323 data->setString("callbackName", callbackName); | 324 data->setString("callbackName", callbackName); |
324 return data.release(); | 325 return data.release(); |
325 } | 326 } |
326 | 327 |
327 } // namespace WebCore | 328 } // namespace WebCore |
328 | 329 |
OLD | NEW |