@@ -164,7 +164,7 @@ operates similarly to the `clear` shell command. On Windows, `console.clear()`
164164will clear only the output in the current terminal viewport for the Node.js
165165binary.
166166
167- ### console.count([ label='default' ] )
167+ ### console.count([ label] )
168168<!-- YAML
169169added: v8.3.0
170170-->
@@ -197,7 +197,7 @@ undefined
197197>
198198```
199199
200- ### console.countReset([ label='default' ] )
200+ ### console.countReset([ label] )
201201<!-- YAML
202202added: v8.3.0
203203-->
@@ -381,7 +381,7 @@ console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']);
381381// └─────────┴─────┘
382382```
383383
384- ### console.time(label)
384+ ### console.time([ label] )
385385<!-- YAML
386386added: v0.1.104
387387-->
@@ -392,7 +392,7 @@ are identified by a unique `label`. Use the same `label` when calling
392392[ ` console.timeEnd() ` ] [ ] to stop the timer and output the elapsed time in
393393milliseconds to ` stdout ` . Timer durations are accurate to the sub-millisecond.
394394
395- ### console.timeEnd(label)
395+ ### console.timeEnd([ label] )
396396<!-- YAML
397397added: v0.1.104
398398changes:
@@ -453,7 +453,7 @@ The following methods are exposed by the V8 engine in the general API but do
453453not display anything unless used in conjunction with the [ inspector] [ ]
454454(` --inspect ` flag).
455455
456- ### console.markTimeline(label)
456+ ### console.markTimeline([ label] )
457457<!-- YAML
458458added: v8.0.0
459459-->
@@ -476,11 +476,11 @@ the **Profile** panel of the inspector.
476476``` js
477477console .profile (' MyLabel' );
478478// Some code
479- console .profileEnd ();
479+ console .profileEnd (' MyLabel ' );
480480// Adds the profile 'MyLabel' to the Profiles panel of the inspector.
481481```
482482
483- ### console.profileEnd()
483+ ### console.profileEnd([ label ] )
484484<!-- YAML
485485added: v8.0.0
486486-->
@@ -490,6 +490,9 @@ current JavaScript CPU profiling session if one has been started and prints
490490the report to the ** Profiles** panel of the inspector. See
491491[ ` console.profile() ` ] [ ] for an example.
492492
493+ If this method is called without a label, the most recently started profile is
494+ stopped.
495+
493496### console.timeStamp([ label] )
494497<!-- YAML
495498added: v8.0.0
@@ -523,7 +526,7 @@ This method does not display anything unless used in the inspector. The
523526[ `console.group()` ] : #console_console_group_label
524527[ `console.log()` ] : #console_console_log_data_args
525528[ `console.profile()` ] : #console_console_profile_label
526- [ `console.profileEnd()` ] : #console_console_profileend
529+ [ `console.profileEnd()` ] : #console_console_profileend_label
527530[ `console.time()` ] : #console_console_time_label
528531[ `console.timeEnd()` ] : #console_console_timeend_label
529532[ `console.timeStamp()` ] : #console_console_timestamp_label
0 commit comments