From 95aca4b4d8fa62815d4bd412fff1a364f842814a Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 29 Apr 2021 16:16:42 -0700 Subject: remove retired locales (#699) --- files/it/web/api/performance/index.html | 135 ---------------------------- files/it/web/api/performance/now/index.html | 104 --------------------- 2 files changed, 239 deletions(-) delete mode 100644 files/it/web/api/performance/index.html delete mode 100644 files/it/web/api/performance/now/index.html (limited to 'files/it/web/api/performance') diff --git a/files/it/web/api/performance/index.html b/files/it/web/api/performance/index.html deleted file mode 100644 index fde24fddb4..0000000000 --- a/files/it/web/api/performance/index.html +++ /dev/null @@ -1,135 +0,0 @@ ---- -title: Performance -slug: Web/API/Performance -tags: - - API - - Interface - - Misurazione delle performance - - Performance - - Reference - - Web Performance -translation_of: Web/API/Performance ---- -
{{APIRef("High Resolution Time")}}
- -

 
- L'interaccia Performance fornisce l'accesso alle informazioni relative alle performance della pagina corrente. Fa parte delle High Resolution Time API, ma viene migliorata tramite le Performance Timeline API, le Navigation Timing API, le User Timing API e le Resource Timing API.

- -

Un oggetto di questo tipo può essere ottenuto chiamando {{domxref("Window.performance")}} in sola lettura.

- -
-

NotaQuesta interfaccia ed i suoi metodi sono disponibili nei Web Workers, ad eccezione di dove diversamente indicato nella guida sottostante.
- Da notare inoltre che i markers delle peformance e le misurazioni sono relative al contesto. Se crei un marker sul thread principale (o su un altro worker), non potrai vederlo in un thread del worker e viceversa.

-
- -

Proprietà

- -

L'interfaccia Performance non eredita nessuna proprietà.

- -
-
{{deprecated_inline}} {{domxref("Performance.navigation")}} {{readonlyInline}}
-
{{domxref("PerformanceNavigation")}} è un oggetto che fornisce un utile contesto sulle operazioni incluse nella lista timing, sia che la pagina venga caricata o ricaricata, quante occorrenze di redirect sono presenti e così via. Not available in workers.
-
{{deprecated_inline}}  {{domxref("Performance.timing")}} {{readonlyInline}}
-
L'oggetto {{domxref("PerformanceTiming")}} contiene le informazioni relative alla latenza delle performance. Not available in workers.
-
{{domxref("Performance.memory", "performance.memory")}} {{Non-standard_inline}}
-
Estensione non-standard aggiunta in Chrome, questa proprietà fornisce un oggetto con l'utilizzo della memoria di base. Non dovresti usare questa API non-stanrdard.
-
{{domxref("Performance.timeOrigin")}} {{readonlyInline}} {{Non-standard_inline}}
-
Restituisce il timestamp preciso del momento in cui si è iniziato a misurare le performance.
-
- -
-
-

Event handlers

-
-
{{domxref("Performance.onresourcetimingbufferfull")}}
-
Un {{domxref("EventTarget")}} che funge da callback e che viene eseguito quando viene scatenato l'evento {{event("resourcetimingbufferfull")}}
-
- -

Metodi

- -

L'interfaccia Performance non eredita nessun metodo.

- -
-
{{domxref("Performance.clearMarks()")}}
-
Rimuove il segnaposto specificato dal buffer delle performance del browser.
-
{{domxref("Performance.clearMeasures()")}}
-
Rimuove la misurazione specificata dal buffer delle performance del browser.
-
{{domxref("Performance.clearResourceTimings()")}}
-
Rimuove tutte le {{domxref("PerformanceEntry","performance entries")}} con un {{domxref("PerformanceEntry.entryType","entryType")}} di resource dal data buffer delle performance del browser.
-
{{domxref("Performance.getEntries()")}}
-
Restituisce una lista di oggetti di tipo {{domxref("PerformanceEntry")}}  basati sul filtro specificato.
-
{{domxref("Performance.getEntriesByName()")}}
-
Restituisce una lista di oggetti di tipo {{domxref("PerformanceEntry")}} secondo il nome specificato ed il tipo divoce specificata.
-
{{domxref("Performance.getEntriesByType()")}}
-
Restituisce una list di oggetti {{domxref("PerformanceEntry")}} relativi alla voce specificata
-
{{domxref("Performance.mark()")}}
-
Crea un {{domxref("DOMHighResTimeStamp","timestamp")}} nel buffer delle performance usando il nome specificato.
-
{{domxref("Performance.measure()")}}
-
Crea un {{domxref("DOMHighResTimeStamp","timestamp")}} nel buffer delle performance del browser tra due segnaposti (indicati rispettivamente come start mark ed end mark)
-
{{domxref("Performance.now()")}}
-
Restituisce un {{domxref("DOMHighResTimeStamp")}} ceh rappresenta il numero in millisecondi trascorso dall'istante preso come riferimento.
-
{{domxref("Performance.setResourceTimingBufferSize()")}}
-
Imposta la dimensione del buffer del browser relativo alla temporizzazione in un numero specificato di oggetti {{domxref("PerformanceEntry","performance entry")}} "resource" {{domxref("PerformanceEntry.entryType","type")}}
-
{{domxref("Performance.toJSON()")}}
-
Restituisce un oggetto json che rappresenta l'oggetto Performance
-
- -

Specifiche

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SpecificaStatoCommento
{{SpecName('Highres Time Level 3', '#dom-performance-timeorigin','timeOrigin')}}{{Spec2('Highres Time Level 3')}}Definisce la proprietà timeOrigin 
{{SpecName('Highres Time Level 2', '#the-performance-interface', 'toJSON()')}}{{Spec2('Highres Time Level 2')}}Definisce il metodo toJson() .
{{SpecName('Highres Time', '#the-performance-interface', 'Performance')}}{{Spec2('Highres Time')}}Definisce il metodo now() .
{{SpecName('Performance Timeline Level 2', '#extensions-to-the-performance-interface', 'Performance extensions')}}{{Spec2('Performance Timeline Level 2')}}Cambia l'interfaccia getEntries() .
{{SpecName('Performance Timeline', '#sec-window.performance-attribute', 'Performance extensions')}}{{Spec2('Performance Timeline')}}Definisce i metodi getEntries(), getEntriesByType()getEntriesByName() .
{{SpecName('Resource Timing', '#extensions-performance-interface', 'Performance extensions')}}{{Spec2('Resource Timing')}}Definisce i metodi clearResourceTimings()setResourceTimingBufferSize() e la proprietà onresourcetimingbufferfull .
{{SpecName('User Timing Level 2', '#extensions-performance-interface', 'Performance extensions')}}{{Spec2('User Timing Level 2')}}Spiega i metodi mark(), clearMark(), measure() e clearMeasure() .
{{SpecName('User Timing', '#extensions-performance-interface', 'Performance extensions')}}{{Spec2('User Timing')}}Definisce i metodi mark(), clearMark(), measure() e clearMeasure().
- -

Browser compatibility

- -
- - -

{{Compat("api.Performance")}}

-
diff --git a/files/it/web/api/performance/now/index.html b/files/it/web/api/performance/now/index.html deleted file mode 100644 index 2331157f18..0000000000 --- a/files/it/web/api/performance/now/index.html +++ /dev/null @@ -1,104 +0,0 @@ ---- -title: performance.now() -slug: Web/API/Performance/now -tags: - - API - - Performance - - Prestazioni - - Reference - - Riferimento - - Web Performance API - - metodo -translation_of: Web/API/Performance/now ---- -
{{APIRef("High Resolution Timing")}}
- -

Il metodo performance.now() restituisce un {{domxref("DOMHighResTimeStamp")}}, misurato in millisecondi.

- -
-

The timestamp is not actually high-resolution. To mitigate security threats such as Spectre, browsers currently round the results to varying degrees. (Firefox started rounding to 1 millisecond in Firefox 60.) Some browsers may also slightly randomize the timestamp. The precision may improve again in future releases; browser developers are still investigating these timing attacks and how best to mitigate them.

-
- -

{{AvailableInWorkers}}

- -

Il valore restituito rappresenta il tempo trascorso dal time origin.

- -

Tieni a mente i seguenti punti:

- - - -

Sintassi

- -
t = performance.now();
- -

Esempio

- -
var t0 = performance.now();
-doSomething();
-var t1 = performance.now();
-console.log("Call to doSomething took " + (t1 - t0) + " milliseconds.");
-
- -

A differenza di altri timing data disponibili con JavaScript (per esempio Date.now), i timestamps restituiti da Performance.now() non sono limitati a una risoluzione di un millisecondo. Invece, rappresentano il tempo come numeri a virgola mobile con una precisione che può arrivare a un microsecondo.

- -

Inolre, a differenza di Date.now(), il valore restituito da Performance.now() aumenta sempre con costanza, indipendentemente dal clock di sistema (che può essere regolato manualmente o distorto da software come NTP). Altrimenti, performance.timing.navigationStart + performance.now() sarà approssimativamente uguale a Date.now().

- -

Reduced time precision

- -

To offer protection against timing attacks and fingerprinting, the precision of performance.now() might get rounded depending on browser settings.
- In Firefox, the privacy.reduceTimerPrecision  preference is enabled by default and defaults to 1ms.

- -
// reduced time precision (1ms) in Firefox 60
-performance.now();
-// 8781416
-// 8781815
-// 8782206
-// ...
-
-
-// reduced time precision with `privacy.resistFingerprinting` enabled
-performance.now();
-// 8865400
-// 8866200
-// 8866700
-// ...
-
- -

In Firefox, you can also enable privacy.resistFingerprinting — this changes the precision to 100ms or the value of privacy.resistFingerprinting.reduceTimerPrecision.microseconds, whichever is larger.

- -

Specifications

- - - - - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('Highres Time Level 2', '#dom-performance-now', 'performance.now()')}}{{Spec2('Highres Time Level 2')}}Stricter definitions of interfaces and types.
{{SpecName('Highres Time', '#dom-performance-now', 'performance.now()')}}{{Spec2('Highres Time')}}Initial definition
- -

Browser compatibility

- - - -

{{Compat("api.Performance.now")}}

- -

See also

- - -- cgit v1.2.3-54-g00ecf