From 0b41e20d54972c983777eeb291cd27e818bbf3b9 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 17 Apr 2015 23:33:06 +0900 Subject: [PATCH] nghttp: Show stream ID in statistics output --- src/nghttp.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/nghttp.cc b/src/nghttp.cc index 41994de9..f03704f5 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -1876,7 +1876,7 @@ see http://www.w3.org/TR/resource-timing/#processing-model sorted by 'complete' -responseEnd requestStart process code size request path)" << std::endl; +id responseEnd requestStart process code size request path)" << std::endl; const auto &base = client.timing.connect_end_time; for (const auto &req : reqs) { @@ -1888,8 +1888,9 @@ responseEnd requestStart process code size request path)" << std::endl; req->timing.response_end_time - req->timing.request_start_time); auto pushed = req->stream_id % 2 == 0; - std::cout << std::setw(11) << ("+" + util::format_duration(response_end)) - << " " << (pushed ? "*" : " ") << std::setw(11) + std::cout << std::setw(3) << req->stream_id << " " << std::setw(11) + << ("+" + util::format_duration(response_end)) << " " + << (pushed ? "*" : " ") << std::setw(11) << ("+" + util::format_duration(request_start)) << " " << std::setw(8) << util::format_duration(total) << " " << std::setw(4) << req->status << " " << std::setw(4)