cpuprofilify
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -47,2 +47,5 @@ 'use strict'; | ||
function inspect(obj, depth) { | ||
console.error(require('util').inspect(obj, false, depth || 5, true)); | ||
} | ||
proto._parseTraceInfo = function _parseTraceInfo(line, isStart) { | ||
@@ -57,3 +60,3 @@ var parts = line.split(' '); | ||
this._startTime = (parts[2] && parts[2].slice(0, -1)) || '0'; | ||
this._startTime = (parts[2] && parts[2].slice(0, -1)) || '0.0'; | ||
@@ -75,2 +78,4 @@ this._process = parts[0]; | ||
var s = t.toString(); | ||
// 0 is a special case | ||
if (s.length < 5) return s; | ||
return s.slice(0, -3) + '.' + s.slice(4); | ||
@@ -77,0 +82,0 @@ } |
{ | ||
"name": "cpuprofilify", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Converts output of various profiling/sampling tools to the .cpuprofile format so it can be loaded into Chrome DevTools.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
14694546
34
15459