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

Side by Side Diff: sky/engine/bindings/core/v8/ScriptProfiler.h

Issue 772563003: Move many of v8_inspector dependencies out of core/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, 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 22 matching lines...) Expand all
33 33
34 #include "sky/engine/bindings/core/v8/ScriptHeapSnapshot.h" 34 #include "sky/engine/bindings/core/v8/ScriptHeapSnapshot.h"
35 #include "sky/engine/core/inspector/ScriptProfile.h" 35 #include "sky/engine/core/inspector/ScriptProfile.h"
36 36
37 #include "sky/engine/wtf/Forward.h" 37 #include "sky/engine/wtf/Forward.h"
38 #include "sky/engine/wtf/PassRefPtr.h" 38 #include "sky/engine/wtf/PassRefPtr.h"
39 #include "sky/engine/wtf/text/WTFString.h" 39 #include "sky/engine/wtf/text/WTFString.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class ExternalStringVisitor;
44 class WrappedNodeVisitor;
45 class Page; 43 class Page;
46 class ScriptValue; 44 class ScriptValue;
47 45
48 class ScriptProfiler { 46 class ScriptProfiler {
49 WTF_MAKE_NONCOPYABLE(ScriptProfiler); 47 WTF_MAKE_NONCOPYABLE(ScriptProfiler);
50 public: 48 public:
51 class HeapSnapshotProgress { 49 class HeapSnapshotProgress {
52 public: 50 public:
53 virtual ~HeapSnapshotProgress() { } 51 virtual ~HeapSnapshotProgress() { }
54 virtual void Start(int totalWork) = 0; 52 virtual void Start(int totalWork) = 0;
(...skipping 13 matching lines...) Expand all
68 static unsigned getHeapObjectId(const ScriptValue&); 66 static unsigned getHeapObjectId(const ScriptValue&);
69 static void clearHeapObjectIds(); 67 static void clearHeapObjectIds();
70 static void setSamplingInterval(int intervalUs); 68 static void setSamplingInterval(int intervalUs);
71 static void start(const String& title); 69 static void start(const String& title);
72 static PassRefPtr<ScriptProfile> stop(const String& title); 70 static PassRefPtr<ScriptProfile> stop(const String& title);
73 static PassRefPtr<ScriptHeapSnapshot> takeHeapSnapshot(const String& title, HeapSnapshotProgress*); 71 static PassRefPtr<ScriptHeapSnapshot> takeHeapSnapshot(const String& title, HeapSnapshotProgress*);
74 static void startTrackingHeapObjects(bool trackAllocations); 72 static void startTrackingHeapObjects(bool trackAllocations);
75 static void stopTrackingHeapObjects(); 73 static void stopTrackingHeapObjects();
76 static unsigned requestHeapStatsUpdate(OutputStream*); 74 static unsigned requestHeapStatsUpdate(OutputStream*);
77 static void initialize(); 75 static void initialize();
78 static void visitNodeWrappers(WrappedNodeVisitor*);
79 static HashMap<String, double>* currentProfileNameIdleTimeMap(); 76 static HashMap<String, double>* currentProfileNameIdleTimeMap();
80 static void setIdle(bool isIdle); 77 static void setIdle(bool isIdle);
81 }; 78 };
82 79
83 } // namespace blink 80 } // namespace blink
84 81
85 #endif // SKY_ENGINE_BINDINGS_CORE_V8_SCRIPTPROFILER_H_ 82 #endif // SKY_ENGINE_BINDINGS_CORE_V8_SCRIPTPROFILER_H_
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/ScriptPreprocessor.cpp ('k') | sky/engine/bindings/core/v8/ScriptProfiler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698