Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3f3d9d5

Browse files
committedSep 16, 2018
Fix rendering issues in #1810
1 parent e354cff commit 3f3d9d5

11 files changed

+78
-73
lines changed
 

‎locale/en/about/resources.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ title: Logos and Graphics
1313

1414
<table border="0" cellspacing="0" cellpadding="10" class="logos">
1515
<tr>
16-
<td bgcolor="#FFFFFF">[![Node.js on light background](/static/images/logos/nodejs-new-pantone-black.png)](/static/images/logos/nodejs-new-pantone-black.ai)</td>
17-
<td bgcolor="#333333">[![Node.js on dark background](/static/images/logos/nodejs-new-pantone-white.png)](/static/images/logos/nodejs-new-pantone-white.ai)</td>
16+
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-pantone-black.ai"><img src="/static/images/logos/nodejs-new-pantone-black.png" alt="Node.js on light background"></a></td>
17+
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-pantone-white.ai"><img src="/static/images/logos/nodejs-new-pantone-white.png" alt="Node.js on dark background"></a></td>
1818
</tr>
1919
<tr>
20-
<td>[Node.js standard AI](/static/images/logos/nodejs-new-pantone-black.ai)</td>
21-
<td>[Node.js reversed AI](/static/images/logos/nodejs-new-pantone-white.ai)</td>
20+
<td><a href="/static/images/logos/nodejs-new-pantone-black.ai">Node.js standard AI</a></td>
21+
<td><a href="/static/images/logos/nodejs-new-pantone-white.ai">Node.js reversed AI</a></td>
2222
</tr>
2323
<tr>
24-
<td bgcolor="#FFFFFF">[![Node.js on light background](/static/images/logos/nodejs-new-black.png)](/static/images/logos/nodejs-new-black.ai)</td>
25-
<td bgcolor="#333333">[![Node.js on dark background](/static/images/logos/nodejs-new-white.png)](/static/images/logos/nodejs-new-white.ai)</td>
24+
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-black.ai"><img src="/static/images/logos/nodejs-new-black.png" alt="Node.js on light background"></a></td>
25+
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-white.ai"><img src="/static/images/logos/nodejs-new-white.png" alt="Node.js on dark background"></a></td>
2626
</tr>
2727
<tr>
28-
<td>[Node.js standard with less color AI](/static/images/logos/nodejs-new-black.ai)</td>
29-
<td>[Node.js reversed with less color AI](/static/images/logos/nodejs-new-white.ai)</td>
28+
<td><a href="/static/images/logos/nodejs-new-black.ai">Node.js standard with less color AI</a></td>
29+
<td><a href="/static/images/logos/nodejs-new-white.ai">Node.js reversed with less color AI</a></td>
3030
</tr>
3131
</table>

‎locale/en/blog/npm/2013-outage-postmortem.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ There are two distinct components that make up npmjs.org operated by different p
2828

2929
Here is a high-level summary of the _old architecture:_
3030

31-
<img width=600 src="https://i.cloudup.com/bapm3fk8Ve-3000x3000.png" alt="old npm architecture">
32-
<div style="text-align:center">
33-
_Diagram 1. Old npm architecture_
34-
</div>
31+
<figure>
32+
<img src="https://i.cloudup.com/bapm3fk8Ve-3000x3000.png" alt="old npm architecture">
33+
<figcaption>Diagram 1. Old npm architecture</figcaption>
34+
</figure>
3535

3636
## What went wrong and how was it fixed?
3737

@@ -44,10 +44,10 @@ The incident on November 4th was ultimately resolved by a reboot and resize of t
4444

4545
When neither of these yielded a solution Jason Smith and I decided to move to a multi-master architecture with continuous replication illustrated below:
4646

47-
<img width=600 src="https://i.cloudup.com/xu1faVCq8p-3000x3000.png" alt="current npm architecture">
48-
<div style="text-align:center">
49-
_Diagram 2. Current npm architecture -- Red-lines denote continuous replication_
50-
</div>
47+
<figure>
48+
<img src="https://i.cloudup.com/xu1faVCq8p-3000x3000.png" alt="current npm architecture">
49+
<figcaption>Diagram 2. Current npm architecture -- Red-lines denote continuous replication</figcaption>
50+
</figure>
5151

5252
This _should_ have been the end of our story but unfortunately our supervision logic did not function properly to restart the secondary master on the morning of November 15th. During this time we [moved briefly][ops-single-server] back to a single master architecture. Since then the secondary master has been closely monitored by the entire Nodejitsu operations team to ensure it's continued stability.
5353

@@ -62,10 +62,11 @@ The public npm registry simply cannot go down. **Ever.** We gained a lot of oper
6262

6363
When these new infrastructure components are in-place The npm Registry will look like this:
6464

65-
<img width=600 src="https://i.cloudup.com/XwrpFNICJ2-3000x3000.png" alt="planned npm architecture">
66-
<div style="text-align:center">
67-
_Diagram 3. Planned npm architecture -- Red-lines denote continuous replication_
68-
</div>
65+
<figure>
66+
<img src="https://i.cloudup.com/XwrpFNICJ2-3000x3000.png" alt="planned npm architecture">
67+
<figcaption>
68+
Diagram 3. Planned npm architecture -- Red-lines denote continuous replication</figcaption>
69+
</figure>
6970

7071
## You are npm! And we need your help!
7172

‎locale/en/blog/npm/managing-node-js-dependencies-with-shrinkwrap.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,20 @@ Photo by Luc Viatour (flickr)</p>
2727
<p>That brings us to <a href="https://npmjs.com/doc/shrinkwrap.html">npm shrinkwrap</a><a href="#note1-note" name="note1-top">[1]</a>:
2828

2929
</p>
30-
<pre><code>NAME
30+
31+
```
32+
NAME
3133
npm-shrinkwrap -- Lock down dependency versions
3234
3335
SYNOPSIS
3436
npm shrinkwrap
3537
3638
DESCRIPTION
37-
This command locks down the versions of a package&#039;s dependencies so
39+
This command locks down the versions of a package's dependencies so
3840
that you can control exactly which versions of each dependency will
39-
be used when your package is installed.</code></pre>
41+
be used when your package is installed.
42+
```
43+
4044
<p>Let&#039;s consider package A:
4145

4246
</p>

‎locale/en/docs/guides/simple-profiling.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,15 @@ Parsing this section takes a little more work than the raw tick counts above.
196196
Within each of the "call stacks" above, the percentage in the parent column
197197
tells you the percentage of samples for which the function in the row above was
198198
called by the function in the current row. For example, in the middle "call
199-
stack" above for _sha1_block_data_order, we see that _sha1_block_data_order occurred
199+
stack" above for _sha1_block_data_order, we see that `_sha1_block_data_order` occurred
200200
in 11.9% of samples, which we knew from the raw counts above. However, here, we
201201
can also tell that it was always called by the pbkdf2 function inside the
202-
Node.js crypto module. We see that similarly, _malloc_zone_malloc was called
202+
Node.js crypto module. We see that similarly, `_malloc_zone_malloc` was called
203203
almost exclusively by the same pbkdf2 function. Thus, using the information in
204204
this view, we can tell that our hash computation from the user's password
205205
accounts not only for the 51.8% from above but also for all CPU time in the top
206-
3 most sampled functions since the calls to _sha1_block_data_order and
207-
_malloc_zone_malloc were made on behalf of the pbkdf2 function.
206+
3 most sampled functions since the calls to `_sha1_block_data_order` and
207+
`_malloc_zone_malloc` were made on behalf of the pbkdf2 function.
208208

209209
At this point, it is very clear that the password based hash generation should
210210
be the target of our optimization. Thankfully, you've fully internalized the

‎locale/ko/about/resources.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -8,58 +8,58 @@ title: 로고와 그래픽
88
99
## Logo Downloads
1010
11-
Please review the [trademark policy](/about/trademark/) for information about permissible use of Node.js&reg; logos and marks.
11+
Please review the <a href="/about/trademark/">trademark policy></a> for information about permissible use of Node.js&reg; logos and marks.
1212
1313
Guidelines for the visual display of the Node.js mark are described in
14-
the [Visual Guidelines](/static/documents/foundation-visual-guidelines.pdf).
14+
the <a href="/static/documents/foundation-visual-guidelines.pdf">Visual Guidelines></a>.
1515
-->
1616

1717
# 관련 자료
1818

1919
## 로고 다운로드
2020

21-
Node.js&reg; 로고와 마크를 사용할 수 있는 경우에 대한 정보는 [상표 정책](/about/trademark/)
21+
Node.js&reg; 로고와 마크를 사용할 수 있는 경우에 대한 정보는 <a href="/about/trademark/">상표 정책></a>
2222
확인해보기 바랍니다.
2323

2424
Node.js의 시각적인 가이드라인은
25-
[시각적 가이드라인](/static/documents/foundation-visual-guidelines.pdf)에 나와 있습니다.
25+
<a href="/static/documents/foundation-visual-guidelines.pdf">시각적 가이드라인></a>에 나와 있습니다.
2626

2727
<!--
2828
<table border="0" cellspacing="0" cellpadding="10" class="logos">
2929
<tr>
30-
<td bgcolor="#FFFFFF">[![Node.js on light background](/static/images/logos/nodejs-new-pantone-black.png)](/static/images/logos/nodejs-new-pantone-black.ai)</td>
31-
<td bgcolor="#333333">[![Node.js on dark background](/static/images/logos/nodejs-new-pantone-white.png)](/static/images/logos/nodejs-new-pantone-white.ai)</td>
30+
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-pantone-black.ai"><img src="/static/images/logos/nodejs-new-pantone-black.png" alt="Node.js on light background"></a></td>
31+
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-pantone-white.ai"><img src="/static/images/logos/nodejs-new-pantone-white.png" alt="Node.js on dark background"></a></td>
3232
</tr>
3333
<tr>
34-
<td>[Node.js standard AI](/static/images/logos/nodejs-new-pantone-black.ai)</td>
35-
<td>[Node.js reversed AI](/static/images/logos/nodejs-new-pantone-white.ai)</td>
34+
<td><a href="/static/images/logos/nodejs-new-pantone-black.ai">Node.js standard AI</a></td>
35+
<td><a href="/static/images/logos/nodejs-new-pantone-white.ai">Node.js reversed AI</a></td>
3636
</tr>
3737
<tr>
38-
<td bgcolor="#FFFFFF">[![Node.js on light background](/static/images/logos/nodejs-new-black.png)](/static/images/logos/nodejs-new-black.ai)</td>
39-
<td bgcolor="#333333">[![Node.js on dark background](/static/images/logos/nodejs-new-white.png)](/static/images/logos/nodejs-new-white.ai)</td>
38+
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-black.ai"><img src="/static/images/logos/nodejs-new-black.png" alt="Node.js on light background"></a></td>
39+
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-white.ai"><img src="/static/images/logos/nodejs-new-white.png" alt="Node.js on dark background"></a></td>
4040
</tr>
4141
<tr>
42-
<td>[Node.js standard with less color AI](/static/images/logos/nodejs-new-black.ai)</td>
43-
<td>[Node.js reversed with less color AI](/static/images/logos/nodejs-new-white.ai)</td>
42+
<td><a href="/static/images/logos/nodejs-new-black.ai">Node.js standard with less color AI</a></td>
43+
<td><a href="/static/images/logos/nodejs-new-white.ai">Node.js reversed with less color AI</a></td>
4444
</tr>
4545
</table>
4646
-->
4747

4848
<table border="0" cellspacing="0" cellpadding="10" class="logos">
4949
<tr>
50-
<td bgcolor="#FFFFFF">[![밝은 배경의 Node.js](/static/images/logos/nodejs-new-pantone-black.png)](/static/images/logos/nodejs-new-pantone-black.ai)</td>
51-
<td bgcolor="#333333">[![어두운 배경의 Node.js](/static/images/logos/nodejs-new-pantone-white.png)](/static/images/logos/nodejs-new-pantone-white.ai)</td>
50+
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-pantone-black.ai"><img src="/static/images/logos/nodejs-new-pantone-black.png" alt="밝은 배경의 Node.js"></a></td>
51+
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-pantone-white.ai"><img src="/static/images/logos/nodejs-new-pantone-white.png" alt="어두운 배경의 Node.js"></a></td>
5252
</tr>
5353
<tr>
54-
<td>[Node.js 표준 AI](/static/images/logos/nodejs-new-pantone-black.ai)</td>
55-
<td>[Node.js 반전 AI](/static/images/logos/nodejs-new-pantone-white.ai)</td>
54+
<td><a href="/static/images/logos/nodejs-new-pantone-black.ai">Node.js 표준 AI</a></td>
55+
<td><a href="/static/images/logos/nodejs-new-pantone-white.ai">Node.js 반전 AI</a></td>
5656
</tr>
5757
<tr>
58-
<td bgcolor="#FFFFFF">[![밝은 배경의 Node.js](/static/images/logos/nodejs-new-black.png)](/static/images/logos/nodejs-new-black.ai)</td>
59-
<td bgcolor="#333333">[![어두운 배경의 Node.js](/static/images/logos/nodejs-new-white.png)](/static/images/logos/nodejs-new-white.ai)</td>
58+
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-black.ai"><img src="/static/images/logos/nodejs-new-black.png" alt="밝은 배경의 Node.js"></a></td>
59+
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-white.ai"><img src="/static/images/logos/nodejs-new-white.png" alt="어두운 배경의 Node.js"></a></td>
6060
</tr>
6161
<tr>
62-
<td>[적은 색상을 가진 Node.js 표준 AI](/static/images/logos/nodejs-new-black.ai)</td>
63-
<td>[적은 색상을 가진 Node.js 반전 AI](/static/images/logos/nodejs-new-white.ai)</td>
62+
<td><a href="/static/images/logos/nodejs-new-black.ai">적은 색상을 가진 Node.js 표준 AI</a></td>
63+
<td><a href="/static/images/logos/nodejs-new-white.ai">적은 색상을 가진 Node.js 반전 AI</a></td>
6464
</tr>
6565
</table>

‎locale/ko/docs/guides/simple-profiling.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -391,15 +391,15 @@ Parsing this section takes a little more work than the raw tick counts above.
391391
Within each of the "call stacks" above, the percentage in the parent column
392392
tells you the percentage of samples for which the function in the row above was
393393
called by the function in the current row. For example, in the middle "call
394-
stack" above for _sha1_block_data_order, we see that _sha1_block_data_order occurred
394+
stack" above for _sha1_block_data_order, we see that `_sha1_block_data_order` occurred
395395
in 11.9% of samples, which we knew from the raw counts above. However, here, we
396396
can also tell that it was always called by the pbkdf2 function inside the
397-
Node.js crypto module. We see that similarly, _malloc_zone_malloc was called
397+
Node.js crypto module. We see that similarly, `_malloc_zone_malloc` was called
398398
almost exclusively by the same pbkdf2 function. Thus, using the information in
399399
this view, we can tell that our hash computation from the user's password
400400
accounts not only for the 51.8% from above but also for all CPU time in the top
401-
3 most sampled functions since the calls to _sha1_block_data_order and
402-
_malloc_zone_malloc were made on behalf of the pbkdf2 function.
401+
3 most sampled functions since the calls to `_sha1_block_data_order` and
402+
`_malloc_zone_malloc` were made on behalf of the pbkdf2 function.
403403
404404
At this point, it is very clear that the password based hash generation should
405405
be the target of our optimization. Thankfully, you've fully internalized the

‎locale/uk/about/resources.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ title: Лого та графіка
1313

1414
<table border="0" cellspacing="0" cellpadding="10" class="logos">
1515
<tr>
16-
<td bgcolor="#FFFFFF">[![Node.js на світлому фоні](/static/images/logos/nodejs-new-pantone-black.png)](/static/images/logos/nodejs-new-pantone-black.ai)</td>
17-
<td bgcolor="#333333">[![Node.js на темному фоні](/static/images/logos/nodejs-new-pantone-white.png)](/static/images/logos/nodejs-new-pantone-white.ai)</td>
16+
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-pantone-black.ai"><img src="/static/images/logos/nodejs-new-pantone-black.png" alt="Node.js на світлому фоні"></a></td>
17+
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-pantone-white.ai"><img src="/static/images/logos/nodejs-new-pantone-white.png" alt="Node.js на темному фоні"></a></td>
1818
</tr>
1919
<tr>
20-
<td>[Node.js звичайний AI](/static/images/logos/nodejs-new-pantone-black.ai)</td>
21-
<td>[Node.js інвертований AI](/static/images/logos/nodejs-new-pantone-white.ai)</td>
20+
<td><a href="/static/images/logos/nodejs-new-pantone-black.ai">Node.js звичайний AI</a></td>
21+
<td><a href="/static/images/logos/nodejs-new-pantone-white.ai">Node.js інвертований AI</a></td>
2222
</tr>
2323
<tr>
24-
<td bgcolor="#FFFFFF">[![Node.js на світлому фоні](/static/images/logos/nodejs-new-black.png)](/static/images/logos/nodejs-new-black.ai)</td>
25-
<td bgcolor="#333333">[![Node.js на темному фоні](/static/images/logos/nodejs-new-white.png)](/static/images/logos/nodejs-new-white.ai)</td>
24+
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-black.ai"><img src="/static/images/logos/nodejs-new-black.png" alt="Node.js на світлому фоні"></a></td>
25+
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-white.ai"><img src="/static/images/logos/nodejs-new-white.png" alt="Node.js на темному фоні"></a></td>
2626
</tr>
2727
<tr>
28-
<td>[Node.js звичайний з меншою кількістю кольорів AI](/static/images/logos/nodejs-new-black.ai)</td>
29-
<td>[Node.js інвертований з меншою кількістю кольорів AI](/static/images/logos/nodejs-new-white.ai)</td>
28+
<td><a href="/static/images/logos/nodejs-new-black.ai">Node.js звичайний з меншою кількістю кольорів AI</a></td>
29+
<td><a href="/static/images/logos/nodejs-new-white.ai">Node.js інвертований з меншою кількістю кольорів AI</a></td>
3030
</tr>
3131
</table>

‎locale/uk/docs/guides/simple-profiling.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,15 @@ Parsing this section takes a little more work than the raw tick counts above.
196196
Within each of the "call stacks" above, the percentage in the parent column
197197
tells you the percentage of samples for which the function in the row above was
198198
called by the function in the current row. For example, in the middle "call
199-
stack" above for _sha1_block_data_order, we see that _sha1_block_data_order occurred
199+
stack" above for _sha1_block_data_order, we see that `_sha1_block_data_order` occurred
200200
in 11.9% of samples, which we knew from the raw counts above. However, here, we
201201
can also tell that it was always called by the pbkdf2 function inside the
202-
Node.js crypto module. We see that similarly, _malloc_zone_malloc was called
202+
Node.js crypto module. We see that similarly, `_malloc_zone_malloc` was called
203203
almost exclusively by the same pbkdf2 function. Thus, using the information in
204204
this view, we can tell that our hash computation from the user's password
205205
accounts not only for the 51.8% from above but also for all CPU time in the top
206-
3 most sampled functions since the calls to _sha1_block_data_order and
207-
_malloc_zone_malloc were made on behalf of the pbkdf2 function.
206+
3 most sampled functions since the calls to `_sha1_block_data_order` and
207+
`_malloc_zone_malloc` were made on behalf of the pbkdf2 function.
208208

209209
At this point, it is very clear that the password based hash generation should
210210
be the target of our optimization. Thankfully, you've fully internalized the

‎locale/zh-cn/about/resources.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ title: 商标和图像
1212

1313
<table border="0" cellspacing="0" cellpadding="10" class="logos">
1414
<tr>
15-
<td bgcolor="#FFFFFF">[![Node.js 浅色背景](/static/images/logos/nodejs-new-pantone-black.png)](/static/images/logos/nodejs-new-pantone-black.ai)</td>
16-
<td bgcolor="#333333">[![Node.js 深色背景](/static/images/logos/nodejs-new-pantone-white.png)](/static/images/logos/nodejs-new-pantone-white.ai)</td>
15+
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-pantone-black.ai"><img src="/static/images/logos/nodejs-new-pantone-black.png" alt="Node.js 浅色背景"></a></td>
16+
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-pantone-white.ai"><img src="/static/images/logos/nodejs-new-pantone-white.png" alt="Node.js 深色背景"></a></td>
1717
</tr>
1818
<tr>
19-
<td>[Node.js 标准 AI](/static/images/logos/nodejs-new-pantone-black.ai)</td>
20-
<td>[Node.js 保留 AI](/static/images/logos/nodejs-new-pantone-white.ai)</td>
19+
<td><a href="/static/images/logos/nodejs-new-pantone-black.ai">Node.js 标准 AI</a></td>
20+
<td><a href="/static/images/logos/nodejs-new-pantone-white.ai">Node.js 保留 AI</a></td>
2121
</tr>
2222
<tr>
23-
<td bgcolor="#FFFFFF">[![Node.js 浅色背景 ](/static/images/logos/nodejs-new-black.png)](/static/images/logos/nodejs-new-black.ai)</td>
24-
<td bgcolor="#333333">[![Node.js 深色背景 ](/static/images/logos/nodejs-new-white.png)](/static/images/logos/nodejs-new-white.ai)</td>
23+
<td bgcolor="#FFFFFF"><a href="/static/images/logos/nodejs-new-black.ai"><img src="/static/images/logos/nodejs-new-black.png" alt="Node.js 浅色背景 "></a></td>
24+
<td bgcolor="#333333"><a href="/static/images/logos/nodejs-new-white.ai"><img src="/static/images/logos/nodejs-new-white.png" alt="Node.js 深色背景 "></a></td>
2525
</tr>
2626
<tr>
27-
<td>[少彩色的标准 Node.js AI](/static/images/logos/nodejs-new-black.ai)</td>
28-
<td>[少彩色的保留 Node.js AI](/static/images/logos/nodejs-new-white.ai)</td>
27+
<td><a href="/static/images/logos/nodejs-new-black.ai">少彩色的标准 Node.js AI</a></td>
28+
<td><a href="/static/images/logos/nodejs-new-white.ai">少彩色的保留 Node.js AI</a></td>
2929
</tr>
3030
</table>

‎locale/zh-cn/docs/guides/debugging-getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ ssh 管道启动,在你机器上连接到 9221 端口将被重定向到 9229
178178

179179
## 遗留的调试器
180180

181-
** 遗留的调试器自 Node 7.7.0 已被启用。请使用 --inspect 代替。**
181+
**遗留的调试器自 Node 7.7.0 已被启用。请使用 --inspect 代替。**
182182

183183
在版本 7 以及更早的版本使用 **--debug****--debug-brk** 开关启动调试时,Node.js 侦听由中断定义的调试命令,TCP 端口上的 V8 调试协议,默认为 `5858`。任何遵守此协议的调试客户端都可以连接并调试运行这个进程,下面有一些热门的说明。
184184

‎locale/zh-cn/docs/guides/simple-profiling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ node --prof-process isolate-0xnnnnnnnnnnnn-v8.log > processed.txt
156156
```
157157

158158
分析此节需要的工作量比上面的原始刻度计数多一点。
159-
在上面的每个“调用栈”中,父列中的百分比将告诉您在当前行中函数调用了上面行中的函数所占的样本百分比。例如,在中间“呼叫堆栈”以上为 _sha1_block_data_order,我们看到 _sha1_block_data_order 发生在 11.9% 样品,我们知道从上面的原始计数。然而,在这里我们也可以说,它总是由 Node.js 内部的 pbkdf2 函数调用加密模块。我们看到,同样 _malloc_zone_malloc 被称为几乎完全相同的 pbkdf2 功能。因此,使用中的信息这种观点,我们可以说,我们从用户的密码帐户计算的哈希不仅为上面所述的 51.8%,但也是前 3 的 CPU 时间采样函数,因为调用 _sha1_block_data_order 和_malloc_zone_malloc 是代表 pbkdf2 的功能而制作的。
159+
在上面的每个“调用栈”中,父列中的百分比将告诉您在当前行中函数调用了上面行中的函数所占的样本百分比。例如,在中间“呼叫堆栈”以上为 _sha1_block_data_order,我们看到 `_sha1_block_data_order` 发生在 11.9% 样品,我们知道从上面的原始计数。然而,在这里我们也可以说,它总是由 Node.js 内部的 pbkdf2 函数调用加密模块。我们看到,同样 `_malloc_zone_malloc` 被称为几乎完全相同的 pbkdf2 功能。因此,使用中的信息这种观点,我们可以说,我们从用户的密码帐户计算的哈希不仅为上面所述的 51.8%,但也是前 3 的 CPU 时间采样函数,因为调用 `_sha1_block_data_order``_malloc_zone_malloc` 是代表 pbkdf2 的功能而制作的。
160160

161161
在这一点上,很明显,,基于密码的哈希生成应该是我们优化的目标。谢天谢地,您已经完全了解了 [异步编程的好处][],并且您认识到从用户密码生成哈希的工作正在以同步方式进行,从而绑定了事件循环。这将阻止我们在计算哈希时处理其它传入请求。
162162

0 commit comments

Comments
 (0)
Please sign in to comment.