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

Side by Side Diff: include/v8.h

Issue 13458003: Isolatify HeapProfiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « no previous file | include/v8-profiler.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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 class Array; 102 class Array;
103 class Boolean; 103 class Boolean;
104 class BooleanObject; 104 class BooleanObject;
105 class Context; 105 class Context;
106 class Data; 106 class Data;
107 class Date; 107 class Date;
108 class DeclaredAccessorDescriptor; 108 class DeclaredAccessorDescriptor;
109 class External; 109 class External;
110 class Function; 110 class Function;
111 class FunctionTemplate; 111 class FunctionTemplate;
112 class HeapProfiler;
112 class ImplementationUtilities; 113 class ImplementationUtilities;
113 class Int32; 114 class Int32;
114 class Integer; 115 class Integer;
115 class Isolate; 116 class Isolate;
116 class Number; 117 class Number;
117 class NumberObject; 118 class NumberObject;
118 class Object; 119 class Object;
119 class ObjectOperationDescriptor; 120 class ObjectOperationDescriptor;
120 class ObjectTemplate; 121 class ObjectTemplate;
121 class Primitive; 122 class Primitive;
(...skipping 2893 matching lines...) Expand 10 before | Expand all | Expand 10 after
3015 * global garbage collections more often than it would otherwise in an attempt 3016 * global garbage collections more often than it would otherwise in an attempt
3016 * to garbage collect the JavaScript objects that keep the externally 3017 * to garbage collect the JavaScript objects that keep the externally
3017 * allocated memory alive. 3018 * allocated memory alive.
3018 * 3019 *
3019 * \param change_in_bytes the change in externally allocated memory that is 3020 * \param change_in_bytes the change in externally allocated memory that is
3020 * kept alive by JavaScript objects. 3021 * kept alive by JavaScript objects.
3021 * \returns the adjusted value. 3022 * \returns the adjusted value.
3022 */ 3023 */
3023 intptr_t AdjustAmountOfExternalAllocatedMemory(intptr_t change_in_bytes); 3024 intptr_t AdjustAmountOfExternalAllocatedMemory(intptr_t change_in_bytes);
3024 3025
3026 /**
3027 * Returns heap profiler for this isolate. Will return NULL until the isolate
3028 * is initialized.
3029 */
3030 HeapProfiler* GetHeapProfiler();
3031
3025 private: 3032 private:
3026 Isolate(); 3033 Isolate();
3027 Isolate(const Isolate&); 3034 Isolate(const Isolate&);
3028 ~Isolate(); 3035 ~Isolate();
3029 Isolate& operator=(const Isolate&); 3036 Isolate& operator=(const Isolate&);
3030 void* operator new(size_t size); 3037 void* operator new(size_t size);
3031 void operator delete(void*, size_t); 3038 void operator delete(void*, size_t);
3032 }; 3039 };
3033 3040
3034 3041
(...skipping 1989 matching lines...) Expand 10 before | Expand all | Expand 10 after
5024 5031
5025 5032
5026 } // namespace v8 5033 } // namespace v8
5027 5034
5028 5035
5029 #undef V8EXPORT 5036 #undef V8EXPORT
5030 #undef TYPE_CHECK 5037 #undef TYPE_CHECK
5031 5038
5032 5039
5033 #endif // V8_H_ 5040 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | include/v8-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698