blob: b6b29ad82b4f1bee3640e9ba0da995d5375ba8c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
---
title: Console.profileEnd()
slug: Web/API/console/profileEnd
tags:
- API
- DOM
- Debugging
- Method
- Reference
- Web Development
- profileEnd
- web console
translation_of: Web/API/Console/profileEnd
---
<p>{{APIRef("Console API")}}{{Non-standard_header}}</p>
<p>profileEnd メソッドは、{{domxref("Console.profile()")}} で開始したプロファイルの記録を終了します。</p>
<p>任意で引数にプロファイル名を与えることができます。引数を与えると、複数のプロファイルを記録している場合に特定のプロファイルのみ停止することができます。</p>
<ul>
<li>記録中のプロファイル名に一致する名称を <code>Console.profileEnd()</code> に渡すと、そのプロファイルを終了します。</li>
<li>記録中のプロファイル名に一致しない名称を <code>Console.profileEnd()</code> に渡すと、何も行いません。</li>
<li><code>Console.profileEnd()</code> にプロファイル名を渡さない場合は、直近に開始したプロファイルを終了します。</li>
</ul>
<p>{{AvailableInWorkers}}</p>
<h2 id="Syntax" name="Syntax">構文</h2>
<pre class="syntaxbox">console.profileEnd(<em>profileName</em>);
</pre>
<h2 id="Parameters" name="Parameters">引数</h2>
<dl>
<dt><code>profileName</code></dt>
<dd>プロファイルにつける名前。この引数は省略可能です。</dd>
</dl>
<h2 id="Specifications" name="Specifications">仕様</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">仕様書</th>
<th scope="col">策定状況</th>
<th scope="col">コメント</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{SpecName("Console API", "#consoleprofileend", "console.profileEnd()")}}</td>
<td>{{Spec2("Console API")}}</td>
<td>最初期の定義</td>
</tr>
</tbody>
</table>
<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザ実装状況</h2>
<div>{{CompatibilityTable}}</div>
<div id="compat-desktop">
<table class="compat-table">
<tbody>
<tr>
<th>機能</th>
<th>Chrome</th>
<th>Firefox (Gecko)</th>
<th>Internet Explorer</th>
<th>Opera</th>
<th>Safari</th>
</tr>
<tr>
<td>基本サポート</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatVersionUnknown}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
</tr>
<tr>
<td>Worker で使用可能</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatGeckoDesktop("38.0")}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<tbody>
<tr>
<th>機能</th>
<th>Android</th>
<th>Firefox Mobile (Gecko)</th>
<th>IE Mobile</th>
<th>Opera Mobile</th>
<th>Safari Mobile</th>
</tr>
<tr>
<td>基本サポート</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatGeckoMobile("10.0")}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
</tr>
<tr>
<td>Worker で使用可能</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatGeckoMobile("38.0")}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
<td>{{CompatUnknown}}</td>
</tr>
</tbody>
</table>
</div>
<h2 id="See_also" name="See_also">関連情報</h2>
<ul>
<li>{{domxref("Console.profile()")}}</li>
</ul>
|