Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
6f096dca
Commit
6f096dca
authored
Aug 01, 2018
by
TousakaRin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change _parse_time_us to _received_us
parent
7b65d3ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
method_status.cpp
src/brpc/details/method_status.cpp
+1
-1
method_status.h
src/brpc/details/method_status.h
+3
-3
No files found.
src/brpc/details/method_status.cpp
View file @
6f096dca
...
...
@@ -136,7 +136,7 @@ void MethodStatus::SetConcurrencyLimiter(ConcurrencyLimiter* cl) {
ScopedMethodStatus
::~
ScopedMethodStatus
()
{
if
(
_status
)
{
_status
->
OnResponded
(
_c
->
ErrorCode
(),
butil
::
cpuwide_time_us
()
-
_
start_parse
_us
);
_status
->
OnResponded
(
_c
->
ErrorCode
(),
butil
::
cpuwide_time_us
()
-
_
received
_us
);
_status
=
NULL
;
}
ServerPrivateAccessor
(
_c
->
server
()).
RemoveConcurrency
(
_c
);
...
...
src/brpc/details/method_status.h
View file @
6f096dca
...
...
@@ -85,17 +85,17 @@ class ScopedMethodStatus {
public
:
ScopedMethodStatus
(
MethodStatus
*
status
,
Controller
*
c
,
int64_t
start_parse
_us
)
int64_t
received
_us
)
:
_status
(
status
)
,
_c
(
c
)
,
_
start_parse_us
(
start_parse
_us
)
{}
,
_
received_us
(
received
_us
)
{}
~
ScopedMethodStatus
();
operator
MethodStatus
*
()
const
{
return
_status
;
}
private
:
DISALLOW_COPY_AND_ASSIGN
(
ScopedMethodStatus
);
MethodStatus
*
_status
;
Controller
*
_c
;
uint64_t
_
start_parse
_us
;
uint64_t
_
received
_us
;
};
inline
bool
MethodStatus
::
OnRequested
()
{
...
...
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