Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
f87aaf1f
Commit
f87aaf1f
authored
Feb 15, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttp: Show '*' to mark pushed resources in --stat output
parent
685dabc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/nghttp.cc
src/nghttp.cc
+6
-3
No files found.
src/nghttp.cc
View file @
f87aaf1f
...
...
@@ -1894,14 +1894,16 @@ void print_stats(const HttpClient &client) {
Request timing:
complete: relative time from protocol handshake to stream close
request: relative time from protocol handshake to request
transmission
transmission
. If '*' is shown, this was pushed by server.
process: time for request and response
code: HTTP status code
size: number of bytes received as response body without
inflation.
URI: request URI
sorted by 'complete'
complete request process code size request path)"
<<
std
::
endl
;
complete request
process code size request path)"
<<
std
::
endl
;
const
auto
&
base
=
client
.
timing
.
on_handshake_time
;
for
(
const
auto
&
req
:
reqs
)
{
...
...
@@ -1912,9 +1914,10 @@ complete request process code size request path)" << std::endl;
req
->
timing
.
on_request_time
-
base
);
auto
total
=
std
::
chrono
::
duration_cast
<
std
::
chrono
::
microseconds
>
(
req
->
timing
.
on_complete_time
-
req
->
timing
.
on_request_time
);
auto
pushed
=
req
->
stream_id
%
2
==
0
;
std
::
cout
<<
std
::
setw
(
9
)
<<
(
"+"
+
util
::
format_duration
(
completed_delta
))
<<
" "
<<
std
::
setw
(
9
)
<<
" "
<<
(
pushed
?
"*"
:
" "
)
<<
std
::
setw
(
9
)
<<
(
"+"
+
util
::
format_duration
(
request_delta
))
<<
" "
<<
std
::
setw
(
8
)
<<
util
::
format_duration
(
total
)
<<
" "
<<
std
::
setw
(
4
)
<<
req
->
status
<<
" "
<<
std
::
setw
(
4
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment