Comments (3)
可能得在client.async_get外面套一层计时的代码。
类似于
time begin
client.async_get
time end
elapsed = end - begin
from cinatra.
可能得在client.async_get外面套一层计时的代码。 类似于
time begin client.async_get time end elapsed = end - begin
多个协程去请求服务端情况下,在外层计时,只能得到所有接口调用总耗时,得不到每个接口单独调用耗时
from cinatra.
我自己改了点源码:在 struct resp_data 加个成员变量,async_request 加入计时就可以了。
from cinatra.
Related Issues (20)
- http server only set get methond,but still process post request HOT 1
- server supports multiple domain names and multiple tls certificates HOT 1
- aarch64平台有乱码,x86平台没有乱码 HOT 4
- 如何使用已有asio::io_context运行cinatra? HOT 2
- coro_http_client 不支持多线程调用? HOT 7
- ssl HOT 9
- .gitignore 应该排除 build.cmake 文件 HOT 3
- 重定向问题 HOT 5
- http响应数据解析有情况 HOT 19
- websocket服务端一些问题 HOT 14
- refactor cinatra server to support c++20 coroutine HOT 4
- 编译报错,‘_M_set_length’ is not a member of ‘std::string’ HOT 5
- 如何使用已有的io_context运行cinatra HOT 1
- Highly concurrent downloading of 2m js files will increase memory usage HOT 1
- websocket,1分钟没有消息交互,服务端会主动把链接掐断 HOT 2
- Windows visit Chinese filename not found
- 请问下,考虑支持unix套接字吗. HOT 10
- 是否可以让server对象的listen函数支持设置连接队列的长度? HOT 6
- bug: gcc resize_and_overwrite 導致髒數據的問題 HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cinatra.