vmarchaud
0ebf01dc53
perf_hooks: add HttpRequest statistics monitoring #28445
```js
const { PerformanceObserver, performance } = require('perf_hooks');
const http = require('http');
const obs = new PerformanceObserver((items) => {
const entry = items.getEntries()[0];
console.log(entry.name, entry.duration);
});
obs.observe({ entryTypes: ['http'] });
const server = http.Server(function(req, res) {
server.close();
res.writeHead(200);
res.end('hello world\n');
});
server.listen(0, function() {
const req = http.request({
port: this.address().port,
path: '/',
method: 'POST'
}).end();
});
```
PR-URL: https://github.com/nodejs/node/pull/28486
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-07-12 00:36:27 +02:00
..
2019-07-02 14:06:01 -04:00
2019-06-23 07:10:06 -07:00
2019-06-23 07:10:04 -07:00
2019-06-23 23:00:03 -07:00
2019-07-08 13:34:05 -04:00
2019-06-23 07:10:01 -07:00
2019-07-08 13:34:05 -04:00
2019-06-23 07:09:57 -07:00
2019-06-23 07:09:55 -07:00
2019-06-27 15:55:50 +02:00
2019-06-23 07:09:54 -07:00
2019-07-02 13:13:03 -04:00
2019-06-02 00:10:01 +02:00
2019-06-23 07:09:50 -07:00
2019-07-02 14:06:01 -04:00
2019-06-14 17:19:21 +08:00
2019-06-23 07:09:34 -07:00
2019-07-08 13:34:05 -04:00
2019-03-08 08:19:38 -06:00
2019-07-08 13:38:06 -04:00
2019-06-26 21:47:25 -07:00
2019-06-27 15:55:50 +02:00
2019-03-11 06:19:11 +01:00
2019-06-23 07:07:39 -07:00
2019-07-03 15:53:31 +02:00
2019-07-08 13:34:05 -04:00
2019-07-08 13:34:05 -04:00
2019-04-20 17:01:09 +03:00
2019-07-12 00:36:27 +02:00
2019-01-25 19:09:26 -08:00
2019-07-04 16:14:27 -07:00
2019-03-27 17:20:06 +01:00
2019-06-27 13:52:17 -04:00
2019-05-21 21:23:52 +02:00
2019-06-20 16:16:11 -04:00
2019-07-11 10:30:01 -07:00
2019-07-09 19:45:20 -07:00
2019-03-27 17:20:06 +01:00
2019-07-08 13:42:23 -04:00
2019-06-12 19:42:54 -07:00
2019-06-23 07:07:31 -07:00
2019-06-23 07:07:30 -07:00
2019-06-23 07:07:28 -07:00
2019-05-30 15:25:55 +02:00
2019-06-27 15:55:50 +02:00
2019-07-08 13:42:45 -04:00