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

Unified Diff: src/extensions/statistics-extension.h

Issue 10803008: Expose counters in javascript. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/d8.cc ('k') | src/extensions/statistics-extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/statistics-extension.h
diff --git a/src/extensions/gc-extension.h b/src/extensions/statistics-extension.h
similarity index 84%
copy from src/extensions/gc-extension.h
copy to src/extensions/statistics-extension.h
index 06ea4ed21a63d40db4f1aebfd5acd165e675affe..433c4cf6870c706957743415f23a27f4c4663244 100644
--- a/src/extensions/gc-extension.h
+++ b/src/extensions/statistics-extension.h
@@ -25,20 +25,20 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#ifndef V8_EXTENSIONS_GC_EXTENSION_H_
-#define V8_EXTENSIONS_GC_EXTENSION_H_
+#ifndef V8_EXTENSIONS_STATISTICS_EXTENSION_H_
+#define V8_EXTENSIONS_STATISTICS_EXTENSION_H_
#include "v8.h"
namespace v8 {
namespace internal {
-class GCExtension : public v8::Extension {
+class StatisticsExtension : public v8::Extension {
public:
- GCExtension() : v8::Extension("v8/gc", kSource) {}
+ StatisticsExtension() : v8::Extension("v8/statistics", kSource) {}
virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction(
v8::Handle<v8::String> name);
- static v8::Handle<v8::Value> GC(const v8::Arguments& args);
+ static v8::Handle<v8::Value> GetCounters(const v8::Arguments& args);
static void Register();
private:
static const char* const kSource;
@@ -46,4 +46,4 @@ class GCExtension : public v8::Extension {
} } // namespace v8::internal
-#endif // V8_EXTENSIONS_GC_EXTENSION_H_
+#endif // V8_EXTENSIONS_STATISTICS_EXTENSION_H_
« no previous file with comments | « src/d8.cc ('k') | src/extensions/statistics-extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698