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

Unified Diff: tools/tickprocessor-driver.js

Issue 1179173009: Add support for running the profiler output processing scripts with node. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Passed a missing type arg through to CodeEntry Created 5 years, 6 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
« tools/tickprocessor.js ('K') | « tools/tickprocessor.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/tickprocessor-driver.js
diff --git a/tools/tickprocessor-driver.js b/tools/tickprocessor-driver.js
index 946f543219b638ccbe5caf6d85b2b00c99ec2c95..1b3199d4926d09b9f1fe0a7cc743cb35da2326e7 100644
--- a/tools/tickprocessor-driver.js
+++ b/tools/tickprocessor-driver.js
@@ -25,6 +25,18 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// Node imports
+if (typeof module !== 'undefined' && module.exports) {
+ tickProcessor = require('./tickprocessor');
+ ArgumentsProcessor = tickProcessor.ArgumentsProcessor;
+ TickProcessor = tickProcessor.TickProcessor;
+ SnapshotLogProcessor = tickProcessor.SnapshotLogProcessor;
+ UnixCppEntriesProvider = tickProcessor.UnixCppEntriesProvider;
+ WindowsCppEntriesProvider = tickProcessor.WindowsCppEntriesProvider;
+ MacCppEntriesProvider = tickProcessor.MacCppEntriesProvider;
+ WebInspector = require('./SourceMap').WebInspector;
+ arguments = process.argv.slice(2);
+}
// Tick Processor's code flow.
« tools/tickprocessor.js ('K') | « tools/tickprocessor.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698