A NodeJs timeline logger tool for generating timeline json files for viewing in the chrome browser
Last updated 7 years ago by pflannery .
Original npm · Tarball · package.json
$ cnpm install chrome-timeline-logger 
SYNC missed versions from official npm registry.

Timeline Logger

Build Status NPM version Dependency Status Gittip donate button Bitdeli Badge

This logger helps generates a timeline JSON file that's compatible with the Chrome Dev Tools timeline viewer


npm install timeline-logger


var timeline = require('timeline-logger');
var builder = new timeline.TimelineBuilder();

// create a Program record
programEvent = builder.createEvent("Program");

// create a TimeStamp record
builder.createEvent("TimeStamp", {message: "hi mum!"});

//	do some stuff
for(var index; index<100; index++)
    console.log("Some output");

// end the TimeStamp record

// end the Program record

var logger = new timeline.TimelineLogger(); "some-file-path", programEvent



name type args description
save method string filepath, timelineRecordList[] saves an array of timeline records to a file specified by the filepath


name type args description
startEvent method string type, [object data] starts a timeline event. Types are defined in TimelineRecordTypes
endEvent method none ends the currently started timeline event.
<-- reset method none


name type args description
start method none sets startTime to
end method none sets endTime to
startTime number
endTime number
children TimelineRecord[]
data object
frameId number
usedHeapSize number
usedHeapSizeDelta number
counters object
stackTrace object


You can discover the history inside the file


You can discover the contributing instructions inside the file


Licensed under the incredibly permissive MIT License
Copyright © 2013+ Stringz Solutions Ltd
Copyright © 2013+ Peter Flannery

Current Tags

  • 0.0.2                                ...           latest (7 years ago)

2 Versions

  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)

Copyright 2014 - 2016 © |