From 3d39d993aa507694fadbe617fd2220013b8a52f6 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Mon, 21 Dec 2015 15:14:41 -0700 Subject: [PATCH] Update: Surface branch property --- lib/helpers/createExtensions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/helpers/createExtensions.js b/lib/helpers/createExtensions.js index 70f34d6..6dd362f 100644 --- a/lib/helpers/createExtensions.js +++ b/lib/helpers/createExtensions.js @@ -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 = []; } @@ -35,6 +36,7 @@ function createExtensions(ee) { ee.emit('start', { uid: storage.uid, name: storage.name, + branch: storage.branch, time: Date.now(), }); }, @@ -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(), }); @@ -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(),