File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ function Storage(fn){
13
13
this . fn = fn ;
14
14
this . uid = uid ++ ;
15
15
this . name = meta . name ;
16
+ this . captureTime = Date . now ( ) ;
16
17
this . startHr = [ ] ;
17
18
}
18
19
19
20
Storage . prototype . capture = function ( ) {
20
- captureLastRun ( this . fn ) ;
21
+ captureLastRun ( this . fn , this . captureTime ) ;
21
22
} ;
22
23
23
24
Storage . prototype . release = function ( ) {
@@ -31,7 +32,6 @@ function createExtensions(ee){
31
32
} ,
32
33
before : function ( storage ) {
33
34
storage . startHr = process . hrtime ( ) ;
34
- storage . capture ( ) ;
35
35
ee . emit ( 'start' , {
36
36
uid : storage . uid ,
37
37
name : storage . name ,
@@ -42,6 +42,7 @@ function createExtensions(ee){
42
42
if ( result && result . state === 'error' ) {
43
43
return this . error ( result . value , storage ) ;
44
44
}
45
+ storage . capture ( ) ;
45
46
ee . emit ( 'stop' , {
46
47
uid : storage . uid ,
47
48
name : storage . name ,
Original file line number Diff line number Diff line change 23
23
"dependencies" : {
24
24
"bach" : " ^0.4.1" ,
25
25
"es6-weak-map" : " ^1.0.1" ,
26
- "last-run" : " ^1.0 .0" ,
26
+ "last-run" : " ^1.1 .0" ,
27
27
"lodash" : " ^3.5.0" ,
28
28
"undertaker-registry" : " 0.0.2"
29
29
},
36
36
"once" : " ^1.3.1" ,
37
37
"promised-del" : " ^1.0.2" ,
38
38
"through2" : " ^0.6.3" ,
39
- "undertaker-common-tasks" : " git://github.com/phated/undertaker-common-tasks" ,
40
- "undertaker-task-metadata" : " git://github.com/undertakerjs/undertaker-task-metadata" ,
39
+ "undertaker-common-tasks" : " git://github.com/phated/undertaker-common-tasks#3d3a89ce66cf7397bb00ea9924e12e07db3bf987 " ,
40
+ "undertaker-task-metadata" : " git://github.com/undertakerjs/undertaker-task-metadata#eb02af6139fcf51a8abb5b7b76a993744512d69d " ,
41
41
"vinyl-fs" : " ^1.0.0"
42
42
},
43
43
"keywords" : [
You can’t perform that action at this time.
0 commit comments