Skip to content

Commit

Permalink
Update: Surface branch property
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jun 22, 2016
1 parent cc9a687 commit 3d39d99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/helpers/createExtensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function Storage(fn) {
this.fn = meta.orig || fn;
this.uid = uid++;
this.name = meta.name;
this.branch = meta.branch || false;
this.captureTime = Date.now();
this.startHr = [];
}
Expand All @@ -35,6 +36,7 @@ function createExtensions(ee) {
ee.emit('start', {
uid: storage.uid,
name: storage.name,
branch: storage.branch,
time: Date.now(),
});
},
Expand All @@ -46,6 +48,7 @@ function createExtensions(ee) {
ee.emit('stop', {
uid: storage.uid,
name: storage.name,
branch: storage.branch,
duration: process.hrtime(storage.startHr),
time: Date.now(),
});
Expand All @@ -58,6 +61,7 @@ function createExtensions(ee) {
ee.emit('error', {
uid: storage.uid,
name: storage.name,
branch: storage.branch,
error: error,
duration: process.hrtime(storage.startHr),
time: Date.now(),
Expand Down

0 comments on commit 3d39d99

Please sign in to comment.