Commit 92af503
process: add direct access to rss without iterating pages
Accessing the rss value through memoryUsage() can be expensive
because this method will also generate memory usage statistics
by iterating on each page.
This commit intend to offer a more direct access to rss value.
Refs: #33384
PR-URL: #34291
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent d3dc124 commit 92af503Copy full SHA for 92af503
File tree
Expand file treeCollapse file tree
4 files changed
+41
-1
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal/process
- src
- test/parallel
Expand file treeCollapse file tree
4 files changed
+41
-1
lines changedOpen diff view settings
Collapse file
+22Lines changed: 22 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1589 | 1589 | |
1590 | 1590 | |
1591 | 1591 | |
| 1592 | + |
| 1593 | + |
| 1594 | + |
| 1595 | + |
| 1596 | + |
| 1597 | + |
| 1598 | + |
| 1599 | + |
| 1600 | + |
| 1601 | + |
| 1602 | + |
| 1603 | + |
| 1604 | + |
| 1605 | + |
| 1606 | + |
| 1607 | + |
| 1608 | + |
| 1609 | + |
| 1610 | + |
| 1611 | + |
| 1612 | + |
| 1613 | + |
1592 | 1614 | |
1593 | 1615 | |
1594 | 1616 | |
|
Collapse file
lib/internal/process/per_thread.js
Copy file name to clipboardExpand all lines: lib/internal/process/per_thread.js+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
93 | 93 | |
94 | 94 | |
95 | 95 | |
| 96 | + |
96 | 97 | |
97 | 98 | |
98 | 99 | |
| ||
168 | 169 | |
169 | 170 | |
170 | 171 | |
| 172 | + |
| 173 | + |
171 | 174 | |
172 | 175 | |
173 | 176 | |
|
Collapse file
src/node_process_methods.cc
Copy file name to clipboardExpand all lines: src/node_process_methods.cc+14-1Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
172 | 172 | |
173 | 173 | |
174 | 174 | |
175 | | - |
| 175 | + |
176 | 176 | |
177 | 177 | |
178 | 178 | |
179 | 179 | |
180 | 180 | |
181 | 181 | |
182 | 182 | |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
183 | 189 | |
184 | 190 | |
185 | 191 | |
| ||
192 | 198 | |
193 | 199 | |
194 | 200 | |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
195 | 206 | |
196 | 207 | |
197 | 208 | |
| ||
542 | 553 | |
543 | 554 | |
544 | 555 | |
| 556 | + |
545 | 557 | |
546 | 558 | |
547 | 559 | |
| ||
568 | 580 | |
569 | 581 | |
570 | 582 | |
| 583 | + |
571 | 584 | |
572 | 585 | |
573 | 586 | |
|
Collapse file
test/parallel/test-memory-usage.js
Copy file name to clipboardExpand all lines: test/parallel/test-memory-usage.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
| 47 | + |
| 48 | + |
0 commit comments