console
Traducción Beta No Oficial
Esta página fue traducida por PageTurner AI (beta). No está respaldada oficialmente por el proyecto. ¿Encontraste un error? Reportar problema →
advertencia
🚧 Esta página está en construcción, por lo que te recomendamos consultar la documentación de MDN para obtener más información.
El objeto global console, tal como está definido en las especificaciones web.
Métodos
timeStamp()
tsx
console.timeStamp(
label: string,
start?: string | number,
end?: string | number,
trackName?: string,
trackGroup?: string,
color?: DevToolsColor
): void;
La API console.timeStamp te permite añadir entradas de temporización personalizadas en la línea de tiempo del panel de Rendimiento.
Parámetros:
| Name | Type | Required | Description |
|---|---|---|---|
| label | string | Yes | The label for the timing entry. |
| start | string | number | No |
|
| end | string | number | No |
|
| trackName | string | No | The name of the custom track. |
| trackGroup | string | No | The name of the track group. |
| color | DevToolsColor | No | The color of the entry. |
tsx
type DevToolsColor =
| 'primary'
| 'primary-light'
| 'primary-dark'
| 'secondary'
| 'secondary-light'
| 'secondary-dark'
| 'tertiary'
| 'tertiary-light'
| 'tertiary-dark'
| 'warning'
| 'error';