Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed bug with debug interface to perf.

logged timeline ends correctly.
  • Loading branch information...
commit b2f60ce665f94c7d4422c33b20835a8ea0454ec8 1 parent c744d78
@bthaeler authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 lib/app/autoload/perf.server.js
View
9 lib/app/autoload/perf.server.js
@@ -193,6 +193,9 @@ YUI.add('mojito-perf', function (Y, NAME) {
return {
done: function () {
m.ms = timestamp() - m.time;
+ if (debug) {
+ debug.profClose("PerfMark", group + ":" + label, "timeline close");
+ }
}
};
}
@@ -290,6 +293,9 @@ YUI.add('mojito-perf', function (Y, NAME) {
// to be able to flush perf metrics only for mojito requests.
// static requests and other type of requests will be ignored.
res.end = function () {
+ if (req.debug) {
+ req.debug.profClose("PerfMark", id, 'req end');
+ }
if (perf) {
end.apply(res, arguments);
Y.log('Flushing perf metrics', 'mojito', NAME);
@@ -301,9 +307,6 @@ YUI.add('mojito-perf', function (Y, NAME) {
req = null;
res = null;
}
- if (req.debug) {
- req.debug.profClose("PerfMark", id, 'req end');
- }
};
}
Please sign in to comment.
Something went wrong with that request. Please try again.