aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/performancemark
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/api/performancemark')
-rw-r--r--files/fr/web/api/performancemark/index.html76
1 files changed, 76 insertions, 0 deletions
diff --git a/files/fr/web/api/performancemark/index.html b/files/fr/web/api/performancemark/index.html
new file mode 100644
index 0000000000..d258deec2b
--- /dev/null
+++ b/files/fr/web/api/performancemark/index.html
@@ -0,0 +1,76 @@
+---
+title: PerformanceMark
+slug: Web/API/PerformanceMark
+tags:
+ - API
+ - Interface
+ - Performance Timing API
+ - Reference
+ - Performance Web
+translation_of: Web/API/PerformanceMark
+---
+<div>{{APIRef("User Timing API")}}</div>
+
+<p class="summary"><code><strong>PerformanceMark</strong></code> est une interface <em>abstraite</em> pour les objets <a href="/fr/docs/Web/API/PerformanceEntry"><code>PerformanceEntry</code></a> avec un <a href="/fr/docs/Web/API/PerformanceEntry/entryType"><code>entryType</code></a> « <code>mark</code> ».Les entrées de ce type sont créées en appelant <a href="/fr/docs/Web/API/Performance/mark"><code>performance.mark()</code></a> pour ajouter un <a href="/fr/docs/Web/API/DOMHighResTimeStamp"><code>DOMHighResTimeStamp</code></a> <em>nommé</em> (le <em>marqueur</em>) à la <em>chronologie des performances</em> du navigateur.</p>
+
+<p>{{InheritanceDiagram}}</p>
+
+<p>{{AvailableInWorkers}}</p>
+
+<h2 id="Properties">Propriétés</h2>
+
+<p>Cette interface n'a pas de propriété mais elle étend les propriétés de <a href="/fr/docs/Web/API/PerformanceEntry"><code>PerformanceEntry</code></a> suivantes en restreignant les propriétés comme suit :</p>
+
+<dl>
+ <dt><a href="/fr/docs/Web/API/PerformanceEntry/entryType"><code>PerformanceEntry.entryType</code></a></dt>
+ <dd>Retourne « <code>mark</code> ».</dd>
+ <dt><a href="/fr/docs/Web/API/PerformanceEntry/name"><code>PerformanceEntry.name</code></a></dt>
+ <dd>Retourne le nom donné au marqueur lorsqu'il a été créé via un appel de <a href="/fr/docs/Web/API/Performance/mark"><code>performance.mark()</code></a>.</dd>
+ <dt><a href="/fr/docs/Web/API/PerformanceEntry/startTime"><code>PerformanceEntry.startTime</code></a></dt>
+ <dd>Retourne le <a href="/fr/docs/Web/API/DOMHighResTimeStamp"><code>DOMHighResTimeStamp</code></a> à partir du moment où <a href="/fr/docs/Web/API/Performance/mark"><code>performance.mark()</code></a> a été appelé.</dd>
+ <dt><a href="/fr/docs/Web/API/PerformanceEntry/duration"><code>PerformanceEntry.duration</code></a></dt>
+ <dd>Retourne « <code>0</code> ». (Un marqueur n'a pas de <em>durée</em>.)</dd>
+</dl>
+
+<h2 id="Methods">Méthodes</h2>
+
+<p>Cette interface n'a pas de méthodes.</p>
+
+<h2 id="Example">Exemple</h2>
+
+<p>Voir l'exemple dans <a href="/fr/docs/Web/API/User_Timing_API/Using_the_User_Timing_API">Utilisation de l'API User Timing</a>.</p>
+
+<h2 id="Specifications">Spécifications</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Spécification</th>
+ <th scope="col">Statut</th>
+ <th scope="col">Commentaire</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('User Timing Level 2', '#performancemark', 'PerformanceMark')}}</td>
+ <td>{{Spec2('User Timing Level 2')}}</td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>{{SpecName('User Timing', '#performancemark', 'PerformanceMark')}}</td>
+ <td>{{Spec2('User Timing')}}</td>
+ <td>Définition initiale.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility">Compatibilité des navigateurs</h2>
+
+<p>{{Compat("api.PerformanceMark")}}</p>
+
+<h2 id="See_also">Voir aussi</h2>
+
+<ul>
+ <li><a href="/fr/docs/Web/API/User_Timing_API">API <i>User Timing</i></a></li>
+ <li><a href="/fr/docs/Web/API/User_Timing_API/Using_the_User_Timing_API">Utilisation de l'API <i>User Timing</i></a></li>
+</ul>