mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: added note warning about change to console.endTime()
Unintended functionality was removed from console.endTime by https://github.com/nodejs/node/pull/3562. Prior to that, you could call console.endTime multiple times for the same label. PR-URL: https://github.com/nodejs/node/pull/6454 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Robert Lindstaedt <robert.lindstaedt@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Jeremy Whitlock <jwhitlock@apache.org>
This commit is contained in:
1 parent
76c9ab5fcf
commit
fd37d54eb5
1 file changed
+5
@@ -230,6 +230,11 @@ console.timeEnd('100-elements');
|
||||
// prints 100-elements: 225.438ms
|
||||
```
|
||||
|
||||
*Note: As of Node.js v6.0.0, `console.timeEnd()` deletes the timer to avoid
|
||||
leaking it. On older versions, the timer persisted. This allowed
|
||||
`console.timeEnd()` to be called multiple times for the same label. This
|
||||
functionality was unintended and is no longer supported.*
|
||||
|
||||
### console.trace(message[, ...])
|
||||
|
||||
Prints to `stderr` the string `'Trace :'`, followed by the [`util.format()`][]
|
||||
|
||||
Reference in new issue
Block a user