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

Side by Side Diff: src/api.cc

Issue 22852024: Track JS allocations as they arrive with no affection on performance when tracking is switched off (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix style + rebase Created 7 years, 2 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
« no previous file with comments | « include/v8-profiler.h ('k') | src/assembler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 7282 matching lines...) Expand 10 before | Expand all | Expand 10 after
7293 GetMemorySizeUsedByProfiler(); 7293 GetMemorySizeUsedByProfiler();
7294 } 7294 }
7295 7295
7296 7296
7297 void HeapProfiler::SetRetainedObjectInfo(UniqueId id, 7297 void HeapProfiler::SetRetainedObjectInfo(UniqueId id,
7298 RetainedObjectInfo* info) { 7298 RetainedObjectInfo* info) {
7299 reinterpret_cast<i::HeapProfiler*>(this)->SetRetainedObjectInfo(id, info); 7299 reinterpret_cast<i::HeapProfiler*>(this)->SetRetainedObjectInfo(id, info);
7300 } 7300 }
7301 7301
7302 7302
7303 void HeapProfiler::StartRecordingHeapAllocations() {
7304 reinterpret_cast<i::HeapProfiler*>(this)->StartHeapAllocationsRecording();
7305 }
7306
7307
7308 void HeapProfiler::StopRecordingHeapAllocations() {
7309 reinterpret_cast<i::HeapProfiler*>(this)->StopHeapAllocationsRecording();
7310 }
7311
7312
7303 v8::Testing::StressType internal::Testing::stress_type_ = 7313 v8::Testing::StressType internal::Testing::stress_type_ =
7304 v8::Testing::kStressTypeOpt; 7314 v8::Testing::kStressTypeOpt;
7305 7315
7306 7316
7307 void Testing::SetStressRunType(Testing::StressType type) { 7317 void Testing::SetStressRunType(Testing::StressType type) {
7308 internal::Testing::set_stress_type(type); 7318 internal::Testing::set_stress_type(type);
7309 } 7319 }
7310 7320
7311 7321
7312 int Testing::GetStressRuns() { 7322 int Testing::GetStressRuns() {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
7534 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 7544 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
7535 Address callback_address = 7545 Address callback_address =
7536 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 7546 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
7537 VMState<EXTERNAL> state(isolate); 7547 VMState<EXTERNAL> state(isolate);
7538 ExternalCallbackScope call_scope(isolate, callback_address); 7548 ExternalCallbackScope call_scope(isolate, callback_address);
7539 callback(info); 7549 callback(info);
7540 } 7550 }
7541 7551
7542 7552
7543 } } // namespace v8::internal 7553 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8-profiler.h ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698