nodejs-map 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +95 -2
  3. package/dist/app/assets/LearnView-Cqz9Ux8w.js +3 -0
  4. package/dist/app/assets/LearnView-Cqz9Ux8w.js.map +1 -0
  5. package/dist/app/assets/LearnView-Nrw6YQU8.css +1 -0
  6. package/dist/app/assets/app.worker-DZKurLgd.js +8 -0
  7. package/dist/app/assets/app.worker-DZKurLgd.js.map +1 -0
  8. package/dist/app/assets/atlas.worker-DGHewGIv.js +2 -0
  9. package/dist/app/assets/atlas.worker-DGHewGIv.js.map +1 -0
  10. package/dist/app/assets/cm-BTWjV_Gb.js +13 -0
  11. package/dist/app/assets/cm-BTWjV_Gb.js.map +1 -0
  12. package/dist/app/assets/dist-B37Ex44M.js +2 -0
  13. package/dist/app/assets/dist-B37Ex44M.js.map +1 -0
  14. package/dist/app/assets/dist-Dv4HNg5q.js +2 -0
  15. package/dist/app/assets/dist-Dv4HNg5q.js.map +1 -0
  16. package/dist/app/assets/index-BRoted4h.css +1 -0
  17. package/dist/app/assets/index-eLItdROg.js +18 -0
  18. package/dist/app/assets/index-eLItdROg.js.map +1 -0
  19. package/dist/app/assets/map-CISW7_cc.css +1 -0
  20. package/dist/app/assets/map-mCCk9DTc.js +132 -0
  21. package/dist/app/assets/map-mCCk9DTc.js.map +1 -0
  22. package/dist/app/assets/sdf-label-font-1nAa0TP8.png +0 -0
  23. package/dist/app/config.json +5 -0
  24. package/dist/app/favicon.svg +1 -0
  25. package/dist/app/index.html +21 -0
  26. package/dist/atlas/v26.13.1/build-report.json +178 -0
  27. package/dist/atlas/v26.13.1/chunks/lib.bootstrap.0.json +1 -0
  28. package/dist/atlas/v26.13.1/chunks/lib.core.0.json +1 -0
  29. package/dist/atlas/v26.13.1/chunks/lib.crypto.0.json +1 -0
  30. package/dist/atlas/v26.13.1/chunks/lib.devtools.0.json +1 -0
  31. package/dist/atlas/v26.13.1/chunks/lib.events.0.json +1 -0
  32. package/dist/atlas/v26.13.1/chunks/lib.fs.0.json +1 -0
  33. package/dist/atlas/v26.13.1/chunks/lib.modules.0.json +1 -0
  34. package/dist/atlas/v26.13.1/chunks/lib.net.0.json +1 -0
  35. package/dist/atlas/v26.13.1/chunks/lib.net.1.json +1 -0
  36. package/dist/atlas/v26.13.1/chunks/lib.platform.0.json +1 -0
  37. package/dist/atlas/v26.13.1/chunks/lib.process.0.json +1 -0
  38. package/dist/atlas/v26.13.1/chunks/lib.rest.0.json +1 -0
  39. package/dist/atlas/v26.13.1/chunks/lib.streams.0.json +1 -0
  40. package/dist/atlas/v26.13.1/chunks/lib.timers.0.json +1 -0
  41. package/dist/atlas/v26.13.1/chunks/lib.workers.0.json +1 -0
  42. package/dist/atlas/v26.13.1/chunks/lib.zlib.0.json +1 -0
  43. package/dist/atlas/v26.13.1/chunks/src.callbacks.0.json +1 -0
  44. package/dist/atlas/v26.13.1/chunks/src.crypto.0.json +1 -0
  45. package/dist/atlas/v26.13.1/chunks/src.diag.0.json +1 -0
  46. package/dist/atlas/v26.13.1/chunks/src.fs.0.json +1 -0
  47. package/dist/atlas/v26.13.1/chunks/src.inspector.0.json +1 -0
  48. package/dist/atlas/v26.13.1/chunks/src.loop.0.json +1 -0
  49. package/dist/atlas/v26.13.1/chunks/src.modules.0.json +1 -0
  50. package/dist/atlas/v26.13.1/chunks/src.napi.0.json +1 -0
  51. package/dist/atlas/v26.13.1/chunks/src.net.0.json +1 -0
  52. package/dist/atlas/v26.13.1/chunks/src.net.1.json +1 -0
  53. package/dist/atlas/v26.13.1/chunks/src.process.0.json +1 -0
  54. package/dist/atlas/v26.13.1/chunks/src.rest.0.json +1 -0
  55. package/dist/atlas/v26.13.1/chunks/src.support.0.json +1 -0
  56. package/dist/atlas/v26.13.1/chunks/src.zlib.0.json +1 -0
  57. package/dist/atlas/v26.13.1/chunks/uv.api.0.json +1 -0
  58. package/dist/atlas/v26.13.1/chunks/uv.backends.0.json +1 -0
  59. package/dist/atlas/v26.13.1/chunks/uv.fs.0.json +1 -0
  60. package/dist/atlas/v26.13.1/chunks/uv.loop.0.json +1 -0
  61. package/dist/atlas/v26.13.1/chunks/uv.net.0.json +1 -0
  62. package/dist/atlas/v26.13.1/chunks/uv.rest.0.json +1 -0
  63. package/dist/atlas/v26.13.1/chunks/uv.threadpool.0.json +1 -0
  64. package/dist/atlas/v26.13.1/chunks/v8.api.0.json +1 -0
  65. package/dist/atlas/v26.13.1/chunks/v8.asmjs.0.json +1 -0
  66. package/dist/atlas/v26.13.1/chunks/v8.ast.0.json +1 -0
  67. package/dist/atlas/v26.13.1/chunks/v8.base.0.json +1 -0
  68. package/dist/atlas/v26.13.1/chunks/v8.baseline.0.json +1 -0
  69. package/dist/atlas/v26.13.1/chunks/v8.bigint.0.json +1 -0
  70. package/dist/atlas/v26.13.1/chunks/v8.builtins.0.json +1 -0
  71. package/dist/atlas/v26.13.1/chunks/v8.codegen.0.json +1 -0
  72. package/dist/atlas/v26.13.1/chunks/v8.codegen.riscv.0.json +1 -0
  73. package/dist/atlas/v26.13.1/chunks/v8.common.0.json +1 -0
  74. package/dist/atlas/v26.13.1/chunks/v8.compiler-dispatcher.0.json +1 -0
  75. package/dist/atlas/v26.13.1/chunks/v8.compiler.0.json +1 -0
  76. package/dist/atlas/v26.13.1/chunks/v8.compiler.backend.0.json +1 -0
  77. package/dist/atlas/v26.13.1/chunks/v8.compiler.turboshaft.0.json +1 -0
  78. package/dist/atlas/v26.13.1/chunks/v8.d8.0.json +1 -0
  79. package/dist/atlas/v26.13.1/chunks/v8.date.0.json +1 -0
  80. package/dist/atlas/v26.13.1/chunks/v8.debug.0.json +1 -0
  81. package/dist/atlas/v26.13.1/chunks/v8.deoptimizer.0.json +1 -0
  82. package/dist/atlas/v26.13.1/chunks/v8.diagnostics.0.json +1 -0
  83. package/dist/atlas/v26.13.1/chunks/v8.dumpling.0.json +1 -0
  84. package/dist/atlas/v26.13.1/chunks/v8.execution.0.json +1 -0
  85. package/dist/atlas/v26.13.1/chunks/v8.extensions.0.json +1 -0
  86. package/dist/atlas/v26.13.1/chunks/v8.flags.0.json +1 -0
  87. package/dist/atlas/v26.13.1/chunks/v8.fuzzilli.0.json +1 -0
  88. package/dist/atlas/v26.13.1/chunks/v8.handles.0.json +1 -0
  89. package/dist/atlas/v26.13.1/chunks/v8.heap.0.json +1 -0
  90. package/dist/atlas/v26.13.1/chunks/v8.heap.cppgc.0.json +1 -0
  91. package/dist/atlas/v26.13.1/chunks/v8.ic.0.json +1 -0
  92. package/dist/atlas/v26.13.1/chunks/v8.init.0.json +1 -0
  93. package/dist/atlas/v26.13.1/chunks/v8.inspector.0.json +1 -0
  94. package/dist/atlas/v26.13.1/chunks/v8.interpreter.0.json +1 -0
  95. package/dist/atlas/v26.13.1/chunks/v8.json.0.json +1 -0
  96. package/dist/atlas/v26.13.1/chunks/v8.libplatform.0.json +1 -0
  97. package/dist/atlas/v26.13.1/chunks/v8.libsampler.0.json +1 -0
  98. package/dist/atlas/v26.13.1/chunks/v8.logging.0.json +1 -0
  99. package/dist/atlas/v26.13.1/chunks/v8.maglev.0.json +1 -0
  100. package/dist/atlas/v26.13.1/chunks/v8.numbers.0.json +1 -0
  101. package/dist/atlas/v26.13.1/chunks/v8.objects.0.json +1 -0
  102. package/dist/atlas/v26.13.1/chunks/v8.parsing.0.json +1 -0
  103. package/dist/atlas/v26.13.1/chunks/v8.profiler.0.json +1 -0
  104. package/dist/atlas/v26.13.1/chunks/v8.regexp.0.json +1 -0
  105. package/dist/atlas/v26.13.1/chunks/v8.root.0.json +1 -0
  106. package/dist/atlas/v26.13.1/chunks/v8.roots.0.json +1 -0
  107. package/dist/atlas/v26.13.1/chunks/v8.runtime.0.json +1 -0
  108. package/dist/atlas/v26.13.1/chunks/v8.sandbox.0.json +1 -0
  109. package/dist/atlas/v26.13.1/chunks/v8.snapshot.0.json +1 -0
  110. package/dist/atlas/v26.13.1/chunks/v8.strings.0.json +1 -0
  111. package/dist/atlas/v26.13.1/chunks/v8.tasks.0.json +1 -0
  112. package/dist/atlas/v26.13.1/chunks/v8.torque.0.json +1 -0
  113. package/dist/atlas/v26.13.1/chunks/v8.tracing.0.json +1 -0
  114. package/dist/atlas/v26.13.1/chunks/v8.trap-handler.0.json +1 -0
  115. package/dist/atlas/v26.13.1/chunks/v8.utils.0.json +1 -0
  116. package/dist/atlas/v26.13.1/chunks/v8.wasm.0.json +1 -0
  117. package/dist/atlas/v26.13.1/chunks/v8.zone.0.json +1 -0
  118. package/dist/atlas/v26.13.1/edges.json +1 -0
  119. package/dist/atlas/v26.13.1/files.json +1 -0
  120. package/dist/atlas/v26.13.1/index.json +1 -0
  121. package/dist/atlas/v26.13.1/search.json +1 -0
  122. package/dist/cli.js +6268 -0
  123. package/dist/examples.json +1 -0
  124. package/dist/learn/async-await.json +1 -0
  125. package/dist/learn/backpressure.json +1 -0
  126. package/dist/learn/big-picture.json +1 -0
  127. package/dist/learn/blocking-the-loop.json +1 -0
  128. package/dist/learn/breakpoints.json +1 -0
  129. package/dist/learn/call-stack.json +1 -0
  130. package/dist/learn/first-run.json +1 -0
  131. package/dist/learn/follow-readfile.json +1 -0
  132. package/dist/learn/four-threads-six-jobs.json +1 -0
  133. package/dist/learn/glossary.json +1 -0
  134. package/dist/learn/hiding-areas.json +1 -0
  135. package/dist/learn/http-one-request.json +1 -0
  136. package/dist/learn/http-two-requests.json +1 -0
  137. package/dist/learn/img/big-picture.webp +0 -0
  138. package/dist/learn/img/first-run-queues.webp +0 -0
  139. package/dist/learn/img/hide-restore-strip.webp +0 -0
  140. package/dist/learn/img/hide-view-menu.webp +0 -0
  141. package/dist/learn/img/map-call-path.webp +0 -0
  142. package/dist/learn/img/marks-in-a-run.webp +0 -0
  143. package/dist/learn/img/paused-at-breakpoint.webp +0 -0
  144. package/dist/learn/img/paused-in-node-fs.webp +0 -0
  145. package/dist/learn/img/playback-bar.webp +0 -0
  146. package/dist/learn/img/save-and-share.webp +0 -0
  147. package/dist/learn/img/tour-areas.webp +0 -0
  148. package/dist/learn/index.json +390 -0
  149. package/dist/learn/keep-alive.json +1 -0
  150. package/dist/learn/loop-phases.json +1 -0
  151. package/dist/learn/many-clients.json +1 -0
  152. package/dist/learn/microtasks-belong-to-v8.json +1 -0
  153. package/dist/learn/next-tick.json +1 -0
  154. package/dist/learn/observed-and-inferred.json +1 -0
  155. package/dist/learn/one-libuv-timer.json +1 -0
  156. package/dist/learn/order-and-esm.json +1 -0
  157. package/dist/learn/pipeline-errors.json +1 -0
  158. package/dist/learn/playback.json +1 -0
  159. package/dist/learn/pool-size.json +1 -0
  160. package/dist/learn/prerequisites.json +1 -0
  161. package/dist/learn/probe-build.json +1 -0
  162. package/dist/learn/promises-and-microtasks.json +1 -0
  163. package/dist/learn/reading-a-file.json +1 -0
  164. package/dist/learn/rec/async-await-chain.nmrec.gz +0 -0
  165. package/dist/learn/rec/backpressure.nmrec.gz +0 -0
  166. package/dist/learn/rec/beforeexit-and-exit.nmrec.gz +0 -0
  167. package/dist/learn/rec/block-loop.nmrec.gz +0 -0
  168. package/dist/learn/rec/dns-lookup-thread-pool.nmrec.gz +0 -0
  169. package/dist/learn/rec/esm-twist.nmrec.gz +0 -0
  170. package/dist/learn/rec/eventemitter-is-synchronous.nmrec.gz +0 -0
  171. package/dist/learn/rec/first-run.nmrec.gz +0 -0
  172. package/dist/learn/rec/fs-promises-await.nmrec.gz +0 -0
  173. package/dist/learn/rec/fs-sync-vs-async.nmrec.gz +0 -0
  174. package/dist/learn/rec/http-blocking-fixed.nmrec.gz +0 -0
  175. package/dist/learn/rec/http-blocking.nmrec.gz +0 -0
  176. package/dist/learn/rec/http-keep-alive.nmrec.gz +0 -0
  177. package/dist/learn/rec/http-roundtrip.nmrec.gz +0 -0
  178. package/dist/learn/rec/http-two-requests.nmrec.gz +0 -0
  179. package/dist/learn/rec/interval-and-clear.nmrec.gz +0 -0
  180. package/dist/learn/rec/nested-ticks-and-microtasks.nmrec.gz +0 -0
  181. package/dist/learn/rec/next-tick.nmrec.gz +0 -0
  182. package/dist/learn/rec/pbkdf2-six-jobs-four-threads.nmrec.gz +0 -0
  183. package/dist/learn/rec/phase-check.nmrec.gz +0 -0
  184. package/dist/learn/rec/phase-close.nmrec.gz +0 -0
  185. package/dist/learn/rec/phase-io.nmrec.gz +0 -0
  186. package/dist/learn/rec/pipeline-error.nmrec.gz +0 -0
  187. package/dist/learn/rec/pool-users.nmrec.gz +0 -0
  188. package/dist/learn/rec/pool-with-two-threads.nmrec.gz +0 -0
  189. package/dist/learn/rec/promise-microtasks.nmrec.gz +0 -0
  190. package/dist/learn/rec/readfile-thread-pool.nmrec.gz +0 -0
  191. package/dist/learn/rec/run-to-completion.nmrec.gz +0 -0
  192. package/dist/learn/rec/split-work.nmrec.gz +0 -0
  193. package/dist/learn/rec/stream-pipeline-file.nmrec.gz +0 -0
  194. package/dist/learn/rec/streams-memory.nmrec.gz +0 -0
  195. package/dist/learn/rec/tcp-many-clients.nmrec.gz +0 -0
  196. package/dist/learn/rec/tcp-round-trip.nmrec.gz +0 -0
  197. package/dist/learn/rec/tick-before-promise.nmrec.gz +0 -0
  198. package/dist/learn/rec/timeout-vs-immediate-io.nmrec.gz +0 -0
  199. package/dist/learn/rec/timeout-vs-immediate-main.nmrec.gz +0 -0
  200. package/dist/learn/rec/timer-lateness.nmrec.gz +0 -0
  201. package/dist/learn/rec/timer-vs-file-read.nmrec.gz +0 -0
  202. package/dist/learn/rec/timers-phase.nmrec.gz +0 -0
  203. package/dist/learn/rec/unref-timer.nmrec.gz +0 -0
  204. package/dist/learn/save-and-share.json +1 -0
  205. package/dist/learn/slow-handler.json +1 -0
  206. package/dist/learn/splitting-work.json +1 -0
  207. package/dist/learn/staying-alive.json +1 -0
  208. package/dist/learn/stepping-into-node.json +1 -0
  209. package/dist/learn/streams-basics.json +1 -0
  210. package/dist/learn/tcp-step-by-step.json +1 -0
  211. package/dist/learn/the-map.json +1 -0
  212. package/dist/learn/three-marks.json +1 -0
  213. package/dist/learn/timeout-vs-immediate.json +1 -0
  214. package/dist/learn/timers-are-not-now.json +1 -0
  215. package/dist/learn/tour.json +1 -0
  216. package/dist/learn/what-it-is.json +1 -0
  217. package/dist/learn/what-uses-the-pool.json +1 -0
  218. package/dist/lessons/async-await-chain.nmrec.gz +0 -0
  219. package/dist/lessons/beforeexit-and-exit.nmrec.gz +0 -0
  220. package/dist/lessons/dns-lookup-thread-pool.nmrec.gz +0 -0
  221. package/dist/lessons/esm-twist.nmrec.gz +0 -0
  222. package/dist/lessons/eventemitter-is-synchronous.nmrec.gz +0 -0
  223. package/dist/lessons/fs-promises-await.nmrec.gz +0 -0
  224. package/dist/lessons/fs-sync-vs-async.nmrec.gz +0 -0
  225. package/dist/lessons/index.json +621 -0
  226. package/dist/lessons/interval-and-clear.nmrec.gz +0 -0
  227. package/dist/lessons/nested-ticks-and-microtasks.nmrec.gz +0 -0
  228. package/dist/lessons/pbkdf2-six-jobs-four-threads.nmrec.gz +0 -0
  229. package/dist/lessons/pool-with-two-threads.nmrec.gz +0 -0
  230. package/dist/lessons/readfile-thread-pool.nmrec.gz +0 -0
  231. package/dist/lessons/tcp-round-trip.nmrec.gz +0 -0
  232. package/dist/lessons/tick-before-promise.nmrec.gz +0 -0
  233. package/dist/lessons/timeout-vs-immediate-io.nmrec.gz +0 -0
  234. package/dist/lessons/timeout-vs-immediate-main.nmrec.gz +0 -0
  235. package/dist/lessons/timer-vs-file-read.nmrec.gz +0 -0
  236. package/dist/lessons/timers-phase.nmrec.gz +0 -0
  237. package/dist/preload.cjs +507 -0
  238. package/package.json +25 -4
@@ -0,0 +1 @@
1
+ {"schema":"nodejs-map/atlas@1","node":{"version":"v26.13.1","commit":"e9c277643b0249c50f6e6de5413be8a88ea11b6a","repo":"nodejs/node"},"builder":{"version":"1.0.0","overlayHash":"ecaf78561e7882ba"},"world":{"w":1600,"h":1000},"boxes":[{"id":"o:user","p":"o:world","k":"region","t":1,"n":"Your code","r":[0,0,10000,1100],"loc":null,"d":"The program you run. The app fills this in at run time from your own files; nothing here comes from Node's repository."},{"id":"o:lib","p":"o:world","k":"region","t":1,"n":"Node's JavaScript library (lib/)","r":[0,1200,10000,2150],"loc":{"tree":"lib"},"d":"The JavaScript half of Node. fs, timers, streams and the module loader are ordinary JavaScript that runs on V8, like your code."},{"id":"o:lib.fs","p":"o:lib","k":"group","t":2,"n":"File system (fs)","r":[100,800,983,4867],"loc":{"tree":"lib"},"d":"The fs module. An async call hands a request to the C++ binding; the result comes back later as a callback or a promise."},{"id":"o:fs.readFile","p":"o:lib.fs","k":"feature","t":3,"n":"fs.readFile()","r":[100,800,3267,2730],"loc":[{"path":"lib/fs.js","start":422,"end":473,"sym":"readFile"}],"d":"Reads a whole file. A small file takes one thread-pool job (ReadFileJob); a larger one continues in chunks."},{"id":"o:fs.readFileAfterOneShot","p":"o:lib.fs","k":"feature","t":3,"n":"readFile result handler","r":[3367,800,3267,2730],"loc":[{"path":"lib/fs.js","start":475,"end":517,"sym":"readFileAfterOneShot"}],"d":"Runs on the main thread when the ReadFileJob finishes, decodes the buffer and calls your callback."},{"id":"o:fs.ReadFileContext.read","p":"o:lib.fs","k":"feature","t":3,"n":"ReadFileContext.read()","r":[6633,800,3267,2730],"loc":[{"path":"lib/internal/fs/read/context.js","start":135,"end":178,"sym":"ReadFileContext.prototype.read"}],"d":"The chunked reader for files larger than one chunk; each chunk is one fs read request."},{"id":"o:lib.process","p":"o:lib","k":"group","t":2,"n":"Task queues (nextTick and microtasks)","r":[100,5667,487,3089],"loc":{"tree":"lib"},"d":"The process.nextTick queue and the drain that runs after every callback Node makes into JavaScript."},{"id":"o:tick.nextTick","p":"o:lib.process","k":"feature","t":3,"n":"process.nextTick()","r":[100,800,1960,2730],"loc":[{"path":"lib/internal/process/task_queues.js","start":126,"end":152,"sym":"nextTick"}],"d":"Pushes your callback onto the nextTick queue and marks that a tick is scheduled."},{"id":"o:tick.drain","p":"o:lib.process","k":"feature","t":3,"n":"processTicksAndRejections","r":[2060,800,1960,2730],"loc":[{"path":"lib/internal/process/task_queues.js","start":72,"end":109,"sym":"processTicksAndRejections"}],"d":"Runs every queued nextTick callback, then the microtasks, and repeats until both queues are empty."},{"id":"o:tick.runNextTicks","p":"o:lib.process","k":"feature","t":3,"n":"runNextTicks","r":[4020,800,1960,2730],"loc":[{"path":"lib/internal/process/task_queues.js","start":63,"end":70,"sym":"runNextTicks"}],"d":"Drains nextTicks and microtasks between two timer callbacks or two immediates."},{"id":"o:microtask.queueMicrotask","p":"o:lib.process","k":"feature","t":3,"n":"queueMicrotask()","r":[5980,800,1960,2730],"loc":[{"path":"lib/internal/process/task_queues.js","start":167,"end":182,"sym":"queueMicrotask"}],"d":"Puts your callback on V8's microtask queue, wrapped so that async_hooks can see it."},{"id":"o:microtask.runCallback","p":"o:lib.process","k":"feature","t":3,"n":"runMicrotask","r":[7940,800,1960,2730],"loc":[{"path":"lib/internal/process/task_queues.js","start":154,"end":163,"sym":"runMicrotask"}],"d":"The wrapper that runs one queueMicrotask callback between async_hooks before and after events."},{"id":"o:lib.timers","p":"o:lib","k":"group","t":2,"n":"Timers and immediates","r":[100,8756,487,1144],"loc":{"tree":"lib"},"d":"setTimeout, setInterval and setImmediate. JavaScript keeps the timer lists; a single libuv timer drives all of them."},{"id":"o:timers.setTimeout","p":"o:lib.timers","k":"feature","t":3,"n":"setTimeout()","r":[100,800,1400,2730],"loc":[{"path":"lib/timers.js","start":123,"end":128,"sym":"setTimeout"}],"d":"Creates a Timeout object and inserts it into the timer list for its duration."},{"id":"o:timers.setInterval","p":"o:lib.timers","k":"feature","t":3,"n":"setInterval()","r":[1500,800,1400,2730],"loc":[{"path":"lib/timers.js","start":167,"end":172,"sym":"setInterval"}],"d":"Creates a repeating Timeout; after each run it is inserted again."},{"id":"o:timers.insert","p":"o:lib.timers","k":"feature","t":3,"n":"insert (timer lists)","r":[2900,800,1400,2730],"loc":[{"path":"lib/internal/timers.js","start":426,"end":447,"sym":"insert"}],"d":"Appends the timer to the list for its duration; a new earliest list makes C++ reschedule the libuv timer."},{"id":"o:timers.processTimers","p":"o:lib.timers","k":"feature","t":3,"n":"processTimers","r":[4300,800,1400,2730],"loc":[{"path":"lib/internal/timers.js","start":603,"end":621,"sym":"getTimerCallbacks/processTimers"}],"d":"Called from C++ when the libuv timer fires; walks the due timer lists in expiry order."},{"id":"o:timers.listOnTimeout","p":"o:lib.timers","k":"feature","t":3,"n":"listOnTimeout","r":[5700,800,1400,2730],"loc":[{"path":"lib/internal/timers.js","start":623,"end":738,"sym":"getTimerCallbacks/listOnTimeout"}],"d":"Runs every due timer of one list, running nextTicks and microtasks between two timers."},{"id":"o:immediate.setImmediate","p":"o:lib.timers","k":"feature","t":3,"n":"setImmediate()","r":[7100,800,1400,2730],"loc":[{"path":"lib/timers.js","start":215,"end":218,"sym":"setImmediate"}],"d":"Creates an Immediate and appends it to the immediate queue; the check phase will run it."},{"id":"o:immediate.process","p":"o:lib.timers","k":"feature","t":3,"n":"processImmediate","r":[8500,800,1400,2730],"loc":[{"path":"lib/internal/timers.js","start":525,"end":600,"sym":"getTimerCallbacks/processImmediate"}],"d":"Called from C++ in the check phase; runs the queued immediates, with nextTicks and microtasks between them."},{"id":"o:lib.events","p":"o:lib","k":"group","t":2,"n":"Events and async context","r":[587,5667,496,4233],"loc":{"tree":"lib"},"d":"EventEmitter, EventTarget, async_hooks, AsyncLocalStorage, diagnostics_channel and domain."},{"id":"o:lib.streams","p":"o:lib","k":"group","t":2,"n":"Streams","r":[1083,800,1256,9100],"loc":{"tree":"lib"},"d":"Readable, Writable, Duplex and Transform streams, and the web streams API."},{"id":"o:streams.eos","p":"o:lib.streams","k":"feature","t":3,"n":"eos (stream.finished)","r":[100,800,9800,2730],"loc":[{"path":"lib/internal/streams/end-of-stream.js","start":114,"end":338,"sym":"eos"}],"d":"Calls back once a stream has ended, finished or failed; pipeline uses it to know when each stream is done."},{"id":"o:lib.net","p":"o:lib","k":"group","t":2,"n":"Network, HTTP and DNS","r":[2339,800,1716,9100],"loc":{"tree":"lib"},"d":"net, http, https, http2, tls, dgram, dns and QUIC."},{"id":"o:dns.lookup","p":"o:lib.net","k":"feature","t":3,"n":"dns.lookup()","r":[100,800,3267,2730],"loc":[{"path":"lib/dns.js","start":143,"end":252,"sym":"lookup"}],"d":"Resolves a host name with the operating system's getaddrinfo on the thread pool (not with c-ares)."},{"id":"o:http.incoming","p":"o:lib.net","k":"feature","t":3,"n":"IncomingMessage","r":[3367,800,3267,2730],"loc":[{"path":"lib/_http_incoming.js","start":58,"end":104,"sym":"IncomingMessage"}],"d":"A received HTTP message - the request on a server, the response on a client."},{"id":"o:http.clientRequest","p":"o:lib.net","k":"feature","t":3,"n":"ClientRequest","r":[6633,800,3267,2730],"loc":[{"path":"lib/_http_client.js","start":332,"end":635,"sym":"ClientRequest"}],"d":"An outgoing HTTP request made with http.request() or http.get()."},{"id":"o:lib.crypto","p":"o:lib","k":"group","t":2,"n":"Crypto","r":[4055,800,677,8352],"loc":{"tree":"lib"},"d":"The crypto module and Web Crypto. Expensive operations run as C++ jobs on the thread pool."},{"id":"o:crypto.pbkdf2","p":"o:lib.crypto","k":"feature","t":3,"n":"crypto.pbkdf2()","r":[100,800,4900,2730],"loc":[{"path":"lib/internal/crypto/pbkdf2.js","start":39,"end":66,"sym":"pbkdf2"}],"d":"Creates a PBKDF2Job, runs it on the thread pool and calls your callback with the derived key."},{"id":"o:crypto.randomBytes","p":"o:lib.crypto","k":"feature","t":3,"n":"crypto.randomBytes()","r":[5000,800,4900,2730],"loc":[{"path":"lib/internal/crypto/random.js","start":146,"end":164,"sym":"randomBytes"}],"d":"With a callback, fills a buffer with random bytes in a RandomBytesJob on the thread pool."},{"id":"o:lib.zlib","p":"o:lib","k":"group","t":2,"n":"Compression (zlib)","r":[4055,9152,677,748],"loc":{"tree":"lib"},"d":"gzip, deflate, Brotli and Zstandard streams; each chunk is compressed on the thread pool."},{"id":"o:zlib.processChunk","p":"o:lib.zlib","k":"feature","t":3,"n":"processChunk","r":[100,800,9800,2730],"loc":[{"path":"lib/zlib.js","start":525,"end":543,"sym":"processChunk"}],"d":"Hands one chunk to the native zlib handle as an asynchronous write."},{"id":"o:lib.modules","p":"o:lib","k":"group","t":2,"n":"Modules and vm","r":[4732,800,770,9100],"loc":{"tree":"lib"},"d":"require() and import, source maps, and the vm module."},{"id":"o:lib.bootstrap","p":"o:lib","k":"group","t":2,"n":"Startup","r":[5503,800,481,4450],"loc":{"tree":"lib/internal"},"d":"Code that runs before your program starts, and the entry points that pick how to run it."},{"id":"o:lib.workers","p":"o:lib","k":"group","t":2,"n":"Child processes, cluster and workers","r":[5503,5250,481,4650],"loc":{"tree":"lib"},"d":"child_process, cluster and worker_threads."},{"id":"o:lib.devtools","p":"o:lib","k":"group","t":2,"n":"Developer tools","r":[5983,800,1344,9100],"loc":{"tree":"lib"},"d":"The test runner, the REPL, readline, the debugger client, the inspector module and watch mode."},{"id":"o:lib.core","p":"o:lib","k":"group","t":2,"n":"Core utilities","r":[7327,800,1108,9100],"loc":{"tree":"lib"},"d":"Buffer, util, errors and validators, assert, encodings, path, url and querystring."},{"id":"o:lib.platform","p":"o:lib","k":"group","t":2,"n":"Other built-in modules","r":[8435,800,955,9100],"loc":{"tree":"lib"},"d":"vfs and zip, single executables, sqlite, ffi, wasi, v8, perf_hooks and trace_events."},{"id":"o:lib.rest","p":"o:lib","k":"group","t":2,"n":"The rest of lib/","r":[9391,800,509,9100],"loc":{"tree":"lib"},"d":"Every other file in lib/, by folder."},{"id":"o:src","p":"o:world","k":"region","t":1,"n":"C++ bindings (src/)","r":[0,3450,10000,1700],"loc":{"tree":"src"},"d":"Node's C++ layer. It offers functions to JavaScript (internalBinding), owns the event loop and calls into libuv and V8."},{"id":"o:src.fs","p":"o:src","k":"group","t":2,"n":"fs binding","r":[100,800,446,7048],"loc":{"tree":"src"},"d":"C++ side of the fs module. Starts libuv file operations and turns their results into JavaScript callbacks."},{"id":"o:fs.ReadFileJob.Run","p":"o:src.fs","k":"feature","t":3,"n":"ReadFileJob::Run","r":[100,800,2450,1365],"loc":[{"path":"src/node_file.cc","start":3616,"end":3634,"sym":"node::fs::ReadFileJob::Run"}],"d":"Called from JavaScript (job.run()); checks permissions and schedules the whole read on the thread pool."},{"id":"o:fs.ReadFileJob.DoThreadPoolWork","p":"o:src.fs","k":"feature","t":3,"n":"ReadFileJob::DoThreadPoolWork","r":[100,2165,2450,1365],"loc":[{"path":"src/node_file.cc","start":3636,"end":3710,"sym":"node::fs::ReadFileJob::DoThreadPoolWork"}],"d":"Runs on a thread-pool thread - open, fstat, read and close, each a synchronous libuv call."},{"id":"o:fs.ReadFileJob.AfterThreadPoolWork","p":"o:src.fs","k":"feature","t":3,"n":"ReadFileJob::AfterThreadPoolWork","r":[2550,800,2450,1365],"loc":[{"path":"src/node_file.cc","start":3712,"end":3756,"sym":"node::fs::ReadFileJob::AfterThreadPoolWork"}],"d":"Back on the main thread; builds the Buffer (or the error) and calls job.ondone in JavaScript."},{"id":"o:fs.binding.register","p":"o:src.fs","k":"feature","t":3,"n":"fs binding registration","r":[2550,2165,2450,1365],"loc":[{"path":"src/node_file.cc","start":5626,"end":5766,"sym":"node::fs::CreatePerIsolateProperties"}],"d":"Lists every function and class the fs binding offers to JavaScript."},{"id":"o:fs.reqCallback","p":"o:src.fs","k":"feature","t":3,"n":"FSReqCallback::Resolve","r":[5000,800,2450,1365],"loc":[{"path":"src/node_file.cc","start":749,"end":754,"sym":"node::fs::FSReqCallback::Resolve"}],"d":"Delivers the result of a callback-style fs request by calling req.oncomplete in JavaScript."},{"id":"o:fs.reqPromise","p":"o:src.fs","k":"feature","t":3,"n":"FSReqPromise::Resolve","r":[5000,2165,2450,1365],"loc":[{"path":"src/node_file-inl.h","start":243,"end":257,"sym":"node::fs::FSReqPromise::Resolve","cond":"defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS"}],"d":"Settles the promise of an fs/promises request with its result."},{"id":"o:fs.watchEvent","p":"o:src.fs","k":"feature","t":3,"n":"FSEventWrap::OnEvent","r":[7450,800,2450,1365],"loc":[{"path":"src/fs_event_wrap.cc","start":188,"end":260,"sym":"node::FSEventWrap::OnEvent"}],"d":"libuv reports a file system change; calls the fs.watch handle's onchange in JavaScript."},{"id":"o:fs.statWatcher","p":"o:src.fs","k":"feature","t":3,"n":"StatWatcher::Callback","r":[7450,2165,2450,1365],"loc":[{"path":"src/node_stat_watcher.cc","start":80,"end":96,"sym":"node::StatWatcher::Callback"}],"d":"libuv's fs poll saw changed stats; calls the fs.watchFile handle in JavaScript."},{"id":"o:src.callbacks","p":"o:src","k":"group","t":2,"n":"Calling back into JavaScript","r":[100,7848,446,2052],"loc":{"tree":"src"},"d":"How C++ enters JavaScript for a callback, and how it drains nextTicks and microtasks when the callback returns."},{"id":"o:cb.MakeCallback","p":"o:src.callbacks","k":"feature","t":3,"n":"AsyncWrap::MakeCallback","r":[100,800,1633,2730],"loc":[{"path":"src/async_wrap.cc","start":672,"end":690,"sym":"node::AsyncWrap::MakeCallback"}],"d":"Calls a JavaScript function on behalf of an async resource, with async_hooks bookkeeping and trace events."},{"id":"o:cb.InternalMakeCallback","p":"o:src.callbacks","k":"feature","t":3,"n":"InternalMakeCallback","r":[1733,800,1633,2730],"loc":[{"path":"src/api/callback.cc","start":215,"end":276,"sym":"node::InternalMakeCallback"}],"d":"Opens an InternalCallbackScope, calls the function, then closes the scope."},{"id":"o:cb.ScopeClose","p":"o:src.callbacks","k":"feature","t":3,"n":"InternalCallbackScope::Close","r":[3367,800,1633,2730],"loc":[{"path":"src/api/callback.cc","start":138,"end":213,"sym":"node::InternalCallbackScope::Close"}],"d":"After a callback returns - runs the microtasks, or calls processTicksAndRejections when nextTicks are queued."},{"id":"o:cb.ScheduleWork","p":"o:src.callbacks","k":"feature","t":3,"n":"ThreadPoolWork::ScheduleWork","r":[5000,800,1633,2730],"loc":[{"path":"src/threadpoolwork-inl.h","start":33,"end":60,"sym":"node::ThreadPoolWork::ScheduleWork","cond":"defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS"}],"d":"Node's wrapper around uv_queue_work, used by ReadFileJob, crypto jobs and zlib."},{"id":"o:cb.handleOnClose","p":"o:src.callbacks","k":"feature","t":3,"n":"HandleWrap::OnClose","r":[6633,800,1633,2730],"loc":[{"path":"src/handle_wrap.cc","start":135,"end":157,"sym":"node::HandleWrap::OnClose"}],"d":"Node's close callback for every handle (sockets, timers, watchers); calls the handle's onclose in JavaScript."},{"id":"o:microtask.binding","p":"o:src.callbacks","k":"feature","t":3,"n":"runMicrotasks (binding)","r":[8267,800,1633,2730],"loc":[{"path":"src/node_task_queue.cc","start":140,"end":143,"sym":"node::task_queue::RunMicrotasks"}],"d":"The C++ function behind runMicrotasks(); asks V8 for a microtask checkpoint."},{"id":"o:src.loop","p":"o:src","k":"group","t":2,"n":"Environment, timers and loop driver","r":[546,800,590,9100],"loc":{"tree":"src"},"d":"Starts Node, owns the Environment, runs the libuv loop and connects JavaScript timers and immediates to it."},{"id":"o:loop.spin","p":"o:src.loop","k":"feature","t":3,"n":"SpinEventLoopInternal","r":[100,800,1633,2730],"loc":[{"path":"src/api/embed_helpers.cc","start":23,"end":78,"sym":"node::SpinEventLoopInternal"}],"d":"Calls uv_run until the loop has no more work, then emits beforeExit and checks again."},{"id":"o:timers.scheduleTimer","p":"o:src.loop","k":"feature","t":3,"n":"Environment::ScheduleTimer","r":[1733,800,3267,1365],"loc":[{"path":"src/env.cc","start":1733,"end":1736,"sym":"node::Environment::ScheduleTimer"}],"d":"Starts the single libuv timer that stands for the earliest JavaScript timer."},{"id":"o:timers.runTimers","p":"o:src.loop","k":"feature","t":3,"n":"Environment::RunTimers","r":[1733,2165,3267,1365],"loc":[{"path":"src/env.cc","start":1748,"end":1806,"sym":"node::Environment::RunTimers"}],"d":"The libuv timer's callback; calls processTimers in JavaScript and reschedules for the next expiry."},{"id":"o:immediate.check","p":"o:src.loop","k":"feature","t":3,"n":"Environment::CheckImmediate","r":[5000,800,1633,2730],"loc":[{"path":"src/env.cc","start":1809,"end":1835,"sym":"node::Environment::CheckImmediate"}],"d":"The check-phase callback; calls processImmediate in JavaScript while immediates are queued."},{"id":"o:immediate.native","p":"o:src.loop","k":"feature","t":3,"n":"Environment::RunAndClearNativeImmediates","r":[6633,800,3267,1365],"loc":[{"path":"src/env.cc","start":1632,"end":1696,"sym":"node::Environment::RunAndClearNativeImmediates"}],"d":"Runs callbacks that C++ queued with SetImmediate (such as c-ares answers); CheckImmediate calls it in the check phase."},{"id":"o:immediate.toggleRef","p":"o:src.loop","k":"feature","t":3,"n":"Environment::ToggleImmediateRef","r":[6633,2165,3267,1365],"loc":[{"path":"src/env.cc","start":1837,"end":1846,"sym":"node::Environment::ToggleImmediateRef"}],"d":"Starts or stops an idle handle so the poll phase does not block while immediates are waiting."},{"id":"o:src.inspector","p":"o:src","k":"group","t":2,"n":"Inspector (debugger)","r":[1136,800,423,9100],"loc":{"tree":"src"},"d":"The DevTools protocol server. Holds the main thread while JavaScript is paused at a breakpoint."},{"id":"o:inspector.pause","p":"o:src.inspector","k":"feature","t":3,"n":"runMessageLoopOnPause","r":[100,800,9800,2730],"loc":[{"path":"src/inspector_agent.cc","start":534,"end":537,"sym":"node::inspector::NodeInspectorClient::runMessageLoopOnPause"}],"d":"Where the main thread waits while a breakpoint holds JavaScript; only debugger messages run."},{"id":"o:src.crypto","p":"o:src","k":"group","t":2,"n":"Crypto","r":[1559,800,1197,9100],"loc":{"tree":"src"},"d":"The C++ crypto binding on top of OpenSSL; async jobs run on the thread pool."},{"id":"o:crypto.jobRun","p":"o:src.crypto","k":"feature","t":3,"n":"CryptoJob::Run","r":[100,800,1960,2730],"loc":[{"path":"src/crypto/crypto_util.h","start":458,"end":488,"sym":"node::crypto::CryptoJob::Run","cond":"defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS"}],"d":"Runs a crypto job at once (sync API) or schedules it on the thread pool (async API)."},{"id":"o:crypto.deriveBitsWork","p":"o:src.crypto","k":"feature","t":3,"n":"DeriveBitsJob::DoThreadPoolWork","r":[2060,800,1960,2730],"loc":[{"path":"src/crypto/crypto_util.h","start":627,"end":643,"sym":"node::crypto::DeriveBitsJob::DoThreadPoolWork","cond":"defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS"}],"d":"The pool-thread side of pbkdf2, scrypt, hkdf, randomBytes and other derive-bits jobs."},{"id":"o:crypto.pbkdf2DeriveBits","p":"o:src.crypto","k":"feature","t":3,"n":"PBKDF2Traits::DeriveBits","r":[4020,800,1960,2730],"loc":[{"path":"src/crypto/crypto_pbkdf2.cc","start":116,"end":145,"sym":"node::crypto::PBKDF2Traits::DeriveBits"}],"d":"The PBKDF2 computation itself, done by OpenSSL on a pool thread."},{"id":"o:crypto.randomBytesDeriveBits","p":"o:src.crypto","k":"feature","t":3,"n":"RandomBytesTraits::DeriveBits","r":[5980,800,1960,2730],"loc":[{"path":"src/crypto/crypto_random.cc","start":68,"end":74,"sym":"node::crypto::RandomBytesTraits::DeriveBits"}],"d":"Fills the buffer with random bytes from OpenSSL on a pool thread."},{"id":"o:crypto.jobAfter","p":"o:src.crypto","k":"feature","t":3,"n":"CryptoJob::AfterThreadPoolWork","r":[7940,800,1960,2730],"loc":[{"path":"src/crypto/crypto_util.h","start":360,"end":438,"sym":"node::crypto::CryptoJob::AfterThreadPoolWork","cond":"defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS"}],"d":"Back on the main thread; calls job.ondone in JavaScript with the error or the result."},{"id":"o:src.zlib","p":"o:src","k":"group","t":2,"n":"zlib binding","r":[2756,800,123,9100],"loc":{"tree":"src"},"d":"Compression streams in C++; each write is compressed on the thread pool."},{"id":"o:zlib.write","p":"o:src.zlib","k":"feature","t":3,"n":"CompressionStream::Write","r":[100,800,9800,910],"loc":[{"path":"src/node_zlib.cc","start":588,"end":619,"sym":"node::CompressionStream::Write"}],"d":"Stores the input and output buffers and schedules the compression on the thread pool."},{"id":"o:zlib.work","p":"o:src.zlib","k":"feature","t":3,"n":"ZlibContext::DoThreadPoolWork","r":[100,1710,9800,910],"loc":[{"path":"src/node_zlib.cc","start":1112,"end":1224,"sym":"node::ZlibContext::DoThreadPoolWork"}],"d":"Runs deflate or inflate (gzip, deflate and raw modes) on a pool thread."},{"id":"o:zlib.after","p":"o:src.zlib","k":"feature","t":3,"n":"CompressionStream::AfterThreadPoolWork","r":[100,2620,9800,910],"loc":[{"path":"src/node_zlib.cc","start":643,"end":673,"sym":"node::CompressionStream::AfterThreadPoolWork"}],"d":"Back on the main thread; checks the result and calls the JavaScript write callback (processCallback)."},{"id":"o:src.net","p":"o:src","k":"group","t":2,"n":"Sockets, streams, HTTP and DNS","r":[2879,800,2073,9100],"loc":{"tree":"src"},"d":"TCP, UDP, pipes and TTYs, the stream base, the HTTP parsers, HTTP/2, QUIC and DNS."},{"id":"o:net.streamRead","p":"o:src.net","k":"feature","t":3,"n":"LibuvStreamWrap::OnUvRead","r":[100,800,891,2730],"loc":[{"path":"src/stream_wrap.cc","start":278,"end":319,"sym":"node::LibuvStreamWrap::OnUvRead"}],"d":"Data arrived on a TCP socket, pipe or TTY; passes it to onread in JavaScript."},{"id":"o:net.afterWrite","p":"o:src.net","k":"feature","t":3,"n":"LibuvStreamWrap::AfterUvWrite","r":[991,800,891,2730],"loc":[{"path":"src/stream_wrap.cc","start":492,"end":499,"sym":"node::LibuvStreamWrap::AfterUvWrite"}],"d":"A stream write finished; reports it to JavaScript."},{"id":"o:net.afterShutdown","p":"o:src.net","k":"feature","t":3,"n":"LibuvStreamWrap::AfterUvShutdown","r":[1882,800,891,2730],"loc":[{"path":"src/stream_wrap.cc","start":427,"end":434,"sym":"node::LibuvStreamWrap::AfterUvShutdown"}],"d":"The write side of a stream was shut down; reports it to JavaScript."},{"id":"o:net.onConnection","p":"o:src.net","k":"feature","t":3,"n":"ConnectionWrap::OnConnection","r":[2773,800,891,2730],"loc":[{"path":"src/connection_wrap.cc","start":32,"end":74,"sym":"node::ConnectionWrap::OnConnection"}],"d":"A TCP or pipe server accepted a connection; calls onconnection in JavaScript."},{"id":"o:net.afterConnect","p":"o:src.net","k":"feature","t":3,"n":"ConnectionWrap::AfterConnect","r":[3664,800,891,2730],"loc":[{"path":"src/connection_wrap.cc","start":77,"end":117,"sym":"node::ConnectionWrap::AfterConnect"}],"d":"An outgoing TCP or pipe connect finished; calls oncomplete in JavaScript."},{"id":"o:net.udpRecv","p":"o:src.net","k":"feature","t":3,"n":"UDPWrap::OnRecv","r":[4555,800,891,2730],"loc":[{"path":"src/udp_wrap.cc","start":760,"end":767,"sym":"node::UDPWrap::OnRecv"}],"d":"A UDP datagram arrived; calls onmessage in JavaScript."},{"id":"o:net.udpSendDone","p":"o:src.net","k":"feature","t":3,"n":"UDPWrap::OnSendDone","r":[5445,800,891,2730],"loc":[{"path":"src/udp_wrap.cc","start":733,"end":745,"sym":"node::UDPWrap::OnSendDone"}],"d":"A UDP send finished; calls oncomplete in JavaScript."},{"id":"o:dns.channel","p":"o:src.net","k":"feature","t":3,"n":"ChannelWrap::New","r":[6336,800,891,2730],"loc":[{"path":"src/cares_wrap.cc","start":852,"end":863,"sym":"node::cares_wrap::ChannelWrap::New"}],"d":"Creates the c-ares resolver channel that dns.resolve* and dns.Resolver send their queries through."},{"id":"o:dns.queryResponse","p":"o:src.net","k":"feature","t":3,"n":"QueryWrap::QueueResponseCallback","r":[7227,800,891,2730],"loc":[{"path":"src/cares_wrap.h","start":388,"end":399,"sym":"node::cares_wrap::QueryWrap::QueueResponseCallback","cond":"defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS"}],"d":"Defers a c-ares answer with SetImmediate, so the dns.resolve* callback runs later in the check phase."},{"id":"o:dns.getAddrInfo","p":"o:src.net","k":"feature","t":3,"n":"GetAddrInfo","r":[8118,800,891,2730],"loc":[{"path":"src/cares_wrap.cc","start":1976,"end":2040,"sym":"node::cares_wrap::GetAddrInfo"}],"d":"The C++ side of dns.lookup; starts uv_getaddrinfo with AfterGetAddrInfo as the callback."},{"id":"o:dns.afterGetAddrInfo","p":"o:src.net","k":"feature","t":3,"n":"AfterGetAddrInfo","r":[9009,800,891,2730],"loc":[{"path":"src/cares_wrap.cc","start":1823,"end":1905,"sym":"node::cares_wrap::AfterGetAddrInfo"}],"d":"Back on the main thread; turns the addresses into strings and calls oncomplete in JavaScript."},{"id":"o:src.process","p":"o:src","k":"group","t":2,"n":"Processes, workers and the process object","r":[4952,800,479,9100],"loc":{"tree":"src"},"d":"Child processes, signals, worker threads and message ports, and the process object's native methods."},{"id":"o:proc.onExit","p":"o:src.process","k":"feature","t":3,"n":"ProcessWrap::OnExit","r":[100,800,3267,2730],"loc":[{"path":"src/process_wrap.cc","start":379,"end":395,"sym":"node::ProcessWrap::OnExit"}],"d":"libuv reports that a child process exited; calls onexit in JavaScript."},{"id":"o:worker.onMessage","p":"o:src.process","k":"feature","t":3,"n":"MessagePort::OnMessage","r":[3367,800,3267,2730],"loc":[{"path":"src/node_messaging.cc","start":815,"end":900,"sym":"node::worker::MessagePort::OnMessage"}],"d":"Delivers the messages another thread queued on this port to its JavaScript listener."},{"id":"o:worker.onExit","p":"o:src.process","k":"feature","t":3,"n":"Worker::JoinThread","r":[6633,800,3267,2730],"loc":[{"path":"src/node_worker.cc","start":474,"end":512,"sym":"node::worker::Worker::JoinThread"}],"d":"After the worker thread has stopped, joins it and calls onexit in the parent thread."},{"id":"o:src.modules","p":"o:src","k":"group","t":2,"n":"Modules, contexts and snapshots","r":[5431,800,637,9100],"loc":{"tree":"src"},"d":"Compiling and linking modules, vm contexts, the built-in module loader, the binding registry and startup snapshots."},{"id":"o:src.napi","p":"o:src","k":"group","t":2,"n":"Node-API (native add-ons)","r":[6067,800,333,9100],"loc":{"tree":"src"},"d":"The stable C API that native add-ons are written against."},{"id":"o:src.diag","p":"o:src","k":"group","t":2,"n":"Diagnostics","r":[6401,800,762,9100],"loc":{"tree":"src"},"d":"Trace events, diagnostic reports, performance timing, histograms, heap snapshots and the v8 module's native side."},{"id":"o:src.support","p":"o:src","k":"group","t":2,"n":"Buffers, strings and shared helpers","r":[7163,800,767,9100],"loc":{"tree":"src"},"d":"Buffer and Blob, string encoding, error helpers, memory tracking and the small utilities the rest of src/ uses."},{"id":"o:src.rest","p":"o:src","k":"group","t":2,"n":"Other bindings","r":[7930,800,1970,9100],"loc":{"tree":"src"},"d":"Every other file in src/ - options, url, permissions, sqlite, wasi, ffi and more."},{"id":"o:v8","p":"o:world","k":"region","t":1,"n":"V8 (JavaScript engine)","r":[0,5250,4750,3600],"loc":{"tree":"deps/v8/src"},"d":"Runs all JavaScript - yours and lib/. It parses, interprets and optimizes the code, owns the heap and the microtask queue."},{"id":"o:v8.root","p":"o:v8","k":"group","t":2,"n":"Files directly in deps/v8/src/","r":[100,800,4,1018],"loc":{"tree":"deps/v8/src"},"d":"Files directly in deps/v8/src/."},{"id":"o:v8.api","p":"o:v8","k":"group","t":2,"n":"Public API implementation","r":[104,800,557,1018],"loc":{"tree":"deps/v8/src/api"},"d":"The v8.h API that Node calls."},{"id":"o:v8.asmjs","p":"o:v8","k":"group","t":2,"n":"asmjs","r":[100,1818,134,1113],"loc":{"tree":"deps/v8/src/asmjs"},"d":"deps/v8/src/asmjs/"},{"id":"o:v8.ast","p":"o:v8","k":"group","t":2,"n":"ast","r":[234,1818,428,1113],"loc":{"tree":"deps/v8/src/ast"},"d":"deps/v8/src/ast/"},{"id":"o:v8.base","p":"o:v8","k":"group","t":2,"n":"base","r":[662,800,791,1523],"loc":{"tree":"deps/v8/src/base"},"d":"deps/v8/src/base/"},{"id":"o:v8.baseline","p":"o:v8","k":"group","t":2,"n":"Sparkplug baseline compiler","r":[662,2323,550,608],"loc":{"tree":"deps/v8/src/baseline"},"d":"deps/v8/src/baseline/"},{"id":"o:v8.bigint","p":"o:v8","k":"group","t":2,"n":"bigint","r":[1212,2323,241,608],"loc":{"tree":"deps/v8/src/bigint"},"d":"deps/v8/src/bigint/"},{"id":"o:v8.builtins","p":"o:v8","k":"group","t":2,"n":"Builtins (including promises)","r":[100,2931,1352,3112],"loc":{"tree":"deps/v8/src/builtins"},"d":"Built-in functions written in Torque, CSA and C++ - including Promise.prototype.then and the microtask loop."},{"id":"o:v8.promiseThen","p":"o:v8.builtins","k":"feature","t":3,"n":"Promise.prototype.then","r":[100,800,1400,2730],"loc":[{"path":"deps/v8/src/builtins/promise-then.tq","start":26,"end":86,"sym":"promise::PromisePrototypeThen"}],"d":"The Torque builtin behind .then(); creates the derived promise and calls PerformPromiseThen."},{"id":"o:v8.performPromiseThen","p":"o:v8.builtins","k":"feature","t":3,"n":"PerformPromiseThen","r":[1500,800,2800,1365],"loc":[{"path":"deps/v8/src/builtins/promise-abstract-operations.tq","start":452,"end":490,"sym":"promise::PerformPromiseThenImpl"}],"d":"Stores the reaction on a pending promise, or queues a reaction job at once when the promise is already settled."},{"id":"o:v8.triggerReactions","p":"o:v8.builtins","k":"feature","t":3,"n":"TriggerPromiseReactions","r":[1500,2165,2800,1365],"loc":[{"path":"deps/v8/src/builtins/promise-abstract-operations.tq","start":150,"end":189,"sym":"promise::TriggerPromiseReactions"}],"d":"When a promise settles, turns each stored reaction into a job on the microtask queue."},{"id":"o:v8.enqueueMicrotask","p":"o:v8.builtins","k":"feature","t":3,"n":"EnqueueMicrotask","r":[4300,800,2800,1365],"loc":[{"path":"deps/v8/src/builtins/builtins-microtask-queue-gen.cc","start":581,"end":628,"sym":"v8::internal::Builtins::Generate_EnqueueMicrotask"}],"d":"Appends a job (such as a promise reaction) to the current context's microtask queue."},{"id":"o:v8.runMicrotasksBuiltin","p":"o:v8.builtins","k":"feature","t":3,"n":"RunMicrotasks builtin","r":[4300,2165,2800,1365],"loc":[{"path":"deps/v8/src/builtins/builtins-microtask-queue-gen.cc","start":630,"end":674,"sym":"v8::internal::Builtins::Generate_RunMicrotasks"}],"d":"The loop inside V8 that takes jobs off the microtask queue one by one."},{"id":"o:v8.runSingleMicrotask","p":"o:v8.builtins","k":"feature","t":3,"n":"RunSingleMicrotask","r":[7100,800,2800,1365],"loc":[{"path":"deps/v8/src/builtins/builtins-microtask-queue-gen.cc","start":145,"end":413,"sym":"v8::internal::MicrotaskQueueBuiltinsAssembler::RunSingleMicrotask"}],"d":"Runs one job, dispatching on its kind - a callable, a promise reaction, a thenable job."},{"id":"o:v8.promiseReactionJob","p":"o:v8.builtins","k":"feature","t":3,"n":"PromiseReactionJob","r":[7100,2165,2800,1365],"loc":[{"path":"deps/v8/src/builtins/promise-reaction-job.tq","start":70,"end":103,"sym":"promise::PromiseReactionJob"}],"d":"Runs a .then or .catch handler with the settled value and settles the derived promise with its result."},{"id":"o:v8.codegen","p":"o:v8","k":"group","t":2,"n":"Code generation (assemblers)","r":[1452,800,1152,5243],"loc":{"tree":"deps/v8/src/codegen"},"d":"deps/v8/src/codegen/"},{"id":"o:v8.codegen.riscv","p":"o:v8","k":"group","t":2,"n":"codegen/riscv","r":[100,6043,1064,650],"loc":{"tree":"deps/v8/src/codegen/riscv"},"d":"deps/v8/src/codegen/riscv/"},{"id":"o:v8.common","p":"o:v8","k":"group","t":2,"n":"common","r":[1164,6043,398,650],"loc":{"tree":"deps/v8/src/common"},"d":"deps/v8/src/common/"},{"id":"o:v8.compiler","p":"o:v8","k":"group","t":2,"n":"TurboFan optimizing compiler","r":[100,6693,1462,3207],"loc":{"tree":"deps/v8/src/compiler"},"d":"The optimizing compiler."},{"id":"o:v8.compiler-dispatcher","p":"o:v8","k":"group","t":2,"n":"compiler-dispatcher","r":[1562,6043,1042,47],"loc":{"tree":"deps/v8/src/compiler-dispatcher"},"d":"deps/v8/src/compiler-dispatcher/"},{"id":"o:v8.compiler.backend","p":"o:v8","k":"group","t":2,"n":"Compiler backend (instruction selection, register allocation)","r":[1562,6090,1042,3810],"loc":{"tree":"deps/v8/src/compiler/backend"},"d":"deps/v8/src/compiler/backend/"},{"id":"o:v8.compiler.turboshaft","p":"o:v8","k":"group","t":2,"n":"Turboshaft compiler pipeline","r":[2604,800,1162,2389],"loc":{"tree":"deps/v8/src/compiler/turboshaft"},"d":"deps/v8/src/compiler/turboshaft/"},{"id":"o:v8.d8","p":"o:v8","k":"group","t":2,"n":"d8","r":[2604,3189,548,736],"loc":{"tree":"deps/v8/src/d8"},"d":"deps/v8/src/d8/"},{"id":"o:v8.date","p":"o:v8","k":"group","t":2,"n":"date","r":[3152,3189,72,736],"loc":{"tree":"deps/v8/src/date"},"d":"deps/v8/src/date/"},{"id":"o:v8.debug","p":"o:v8","k":"group","t":2,"n":"debug","r":[2604,3924,620,964],"loc":{"tree":"deps/v8/src/debug"},"d":"deps/v8/src/debug/"},{"id":"o:v8.deoptimizer","p":"o:v8","k":"group","t":2,"n":"deoptimizer","r":[2604,4889,620,546],"loc":{"tree":"deps/v8/src/deoptimizer"},"d":"deps/v8/src/deoptimizer/"},{"id":"o:v8.diagnostics","p":"o:v8","k":"group","t":2,"n":"diagnostics","r":[3224,3189,543,2196],"loc":{"tree":"deps/v8/src/diagnostics"},"d":"deps/v8/src/diagnostics/"},{"id":"o:v8.dumpling","p":"o:v8","k":"group","t":2,"n":"dumpling","r":[3224,5385,543,49],"loc":{"tree":"deps/v8/src/dumpling"},"d":"deps/v8/src/dumpling/"},{"id":"o:v8.execution","p":"o:v8","k":"group","t":2,"n":"Execution (isolate, calls, microtasks)","r":[3766,800,1327,2318],"loc":{"tree":"deps/v8/src/execution"},"d":"Isolates, calling into JavaScript, stack frames and the microtask queue."},{"id":"o:microtask.checkpoint","p":"o:v8.execution","k":"feature","t":3,"n":"MicrotaskQueue::PerformCheckpoint","r":[100,800,4900,2730],"loc":[{"path":"deps/v8/src/execution/microtask-queue.h","start":46,"end":49,"sym":"v8::internal::MicrotaskQueue::PerformCheckpoint"}],"d":"Runs all queued microtasks, unless microtasks are already running or a scope forbids it."},{"id":"o:microtask.run","p":"o:v8.execution","k":"feature","t":3,"n":"MicrotaskQueue::RunMicrotasks","r":[5000,800,4900,2730],"loc":[{"path":"deps/v8/src/execution/microtask-queue.cc","start":153,"end":215,"sym":"v8::internal::MicrotaskQueue::RunMicrotasks"}],"d":"Enters the RunMicrotasks builtin, which runs every queued microtask until the queue is empty."},{"id":"o:v8.extensions","p":"o:v8","k":"group","t":2,"n":"extensions","r":[5093,800,117,372],"loc":{"tree":"deps/v8/src/extensions"},"d":"deps/v8/src/extensions/"},{"id":"o:v8.flags","p":"o:v8","k":"group","t":2,"n":"flags","r":[5093,1172,117,1824],"loc":{"tree":"deps/v8/src/flags"},"d":"deps/v8/src/flags/"},{"id":"o:v8.fuzzilli","p":"o:v8","k":"group","t":2,"n":"fuzzilli","r":[5093,2996,117,122],"loc":{"tree":"deps/v8/src/fuzzilli"},"d":"deps/v8/src/fuzzilli/"},{"id":"o:v8.handles","p":"o:v8","k":"group","t":2,"n":"handles","r":[3766,3118,77,2317],"loc":{"tree":"deps/v8/src/handles"},"d":"deps/v8/src/handles/"},{"id":"o:v8.heap","p":"o:v8","k":"group","t":2,"n":"Garbage collector (heap)","r":[3843,3118,1155,2317],"loc":{"tree":"deps/v8/src/heap"},"d":"Allocation and garbage collection of JavaScript objects."},{"id":"o:v8.heap.cppgc","p":"o:v8","k":"group","t":2,"n":"Oilpan C++ garbage collector (cppgc)","r":[4998,3118,213,2317],"loc":{"tree":"deps/v8/src/heap/cppgc"},"d":"deps/v8/src/heap/cppgc/"},{"id":"o:v8.ic","p":"o:v8","k":"group","t":2,"n":"ic","r":[2604,5434,443,1396],"loc":{"tree":"deps/v8/src/ic"},"d":"deps/v8/src/ic/"},{"id":"o:v8.init","p":"o:v8","k":"group","t":2,"n":"init","r":[3047,5434,313,1396],"loc":{"tree":"deps/v8/src/init"},"d":"deps/v8/src/init/"},{"id":"o:v8.inspector","p":"o:v8","k":"group","t":2,"n":"inspector","r":[2604,6831,756,870],"loc":{"tree":"deps/v8/src/inspector"},"d":"deps/v8/src/inspector/"},{"id":"o:v8.interpreter","p":"o:v8","k":"group","t":2,"n":"Ignition interpreter","r":[3360,5434,664,1394],"loc":{"tree":"deps/v8/src/interpreter"},"d":"Bytecode generation and the bytecode interpreter."},{"id":"o:v8.json","p":"o:v8","k":"group","t":2,"n":"json","r":[3360,6829,341,610],"loc":{"tree":"deps/v8/src/json"},"d":"deps/v8/src/json/"},{"id":"o:v8.libplatform","p":"o:v8","k":"group","t":2,"n":"libplatform","r":[3360,7439,341,262],"loc":{"tree":"deps/v8/src/libplatform"},"d":"deps/v8/src/libplatform/"},{"id":"o:v8.libsampler","p":"o:v8","k":"group","t":2,"n":"libsampler","r":[3700,6829,323,80],"loc":{"tree":"deps/v8/src/libsampler"},"d":"deps/v8/src/libsampler/"},{"id":"o:v8.logging","p":"o:v8","k":"group","t":2,"n":"logging","r":[3700,6909,323,792],"loc":{"tree":"deps/v8/src/logging"},"d":"deps/v8/src/logging/"},{"id":"o:v8.maglev","p":"o:v8","k":"group","t":2,"n":"Maglev compiler","r":[2604,7700,1419,2200],"loc":{"tree":"deps/v8/src/maglev"},"d":"deps/v8/src/maglev/"},{"id":"o:v8.numbers","p":"o:v8","k":"group","t":2,"n":"numbers","r":[4024,5434,1187,80],"loc":{"tree":"deps/v8/src/numbers"},"d":"deps/v8/src/numbers/"},{"id":"o:v8.objects","p":"o:v8","k":"group","t":2,"n":"Object model","r":[4024,5514,1187,4386],"loc":{"tree":"deps/v8/src/objects"},"d":"How JavaScript values are laid out in memory."},{"id":"o:v8.parsing","p":"o:v8","k":"group","t":2,"n":"Parser","r":[5211,800,568,1277],"loc":{"tree":"deps/v8/src/parsing"},"d":"deps/v8/src/parsing/"},{"id":"o:v8.profiler","p":"o:v8","k":"group","t":2,"n":"profiler","r":[5211,2077,568,732],"loc":{"tree":"deps/v8/src/profiler"},"d":"deps/v8/src/profiler/"},{"id":"o:v8.regexp","p":"o:v8","k":"group","t":2,"n":"regexp","r":[5778,800,943,1616],"loc":{"tree":"deps/v8/src/regexp"},"d":"deps/v8/src/regexp/"},{"id":"o:v8.roots","p":"o:v8","k":"group","t":2,"n":"roots","r":[5778,2416,943,393],"loc":{"tree":"deps/v8/src/roots"},"d":"deps/v8/src/roots/"},{"id":"o:v8.runtime","p":"o:v8","k":"group","t":2,"n":"Runtime functions","r":[5211,2809,760,989],"loc":{"tree":"deps/v8/src/runtime"},"d":"deps/v8/src/runtime/"},{"id":"o:v8.sandbox","p":"o:v8","k":"group","t":2,"n":"sandbox","r":[5211,3798,316,1117],"loc":{"tree":"deps/v8/src/sandbox"},"d":"deps/v8/src/sandbox/"},{"id":"o:v8.snapshot","p":"o:v8","k":"group","t":2,"n":"snapshot","r":[5527,3798,444,1117],"loc":{"tree":"deps/v8/src/snapshot"},"d":"deps/v8/src/snapshot/"},{"id":"o:v8.strings","p":"o:v8","k":"group","t":2,"n":"strings","r":[5971,2809,714,412],"loc":{"tree":"deps/v8/src/strings"},"d":"deps/v8/src/strings/"},{"id":"o:v8.tasks","p":"o:v8","k":"group","t":2,"n":"tasks","r":[6685,2809,37,412],"loc":{"tree":"deps/v8/src/tasks"},"d":"deps/v8/src/tasks/"},{"id":"o:v8.torque","p":"o:v8","k":"group","t":2,"n":"torque","r":[5971,3221,751,1251],"loc":{"tree":"deps/v8/src/torque"},"d":"deps/v8/src/torque/"},{"id":"o:v8.tracing","p":"o:v8","k":"group","t":2,"n":"tracing","r":[5971,4472,320,443],"loc":{"tree":"deps/v8/src/tracing"},"d":"deps/v8/src/tracing/"},{"id":"o:v8.trap-handler","p":"o:v8","k":"group","t":2,"n":"trap-handler","r":[6291,4472,103,443],"loc":{"tree":"deps/v8/src/trap-handler"},"d":"deps/v8/src/trap-handler/"},{"id":"o:v8.utils","p":"o:v8","k":"group","t":2,"n":"utils","r":[6394,4472,328,443],"loc":{"tree":"deps/v8/src/utils"},"d":"deps/v8/src/utils/"},{"id":"o:v8.wasm","p":"o:v8","k":"group","t":2,"n":"WebAssembly","r":[5211,4915,1511,4071],"loc":{"tree":"deps/v8/src/wasm"},"d":"deps/v8/src/wasm/"},{"id":"o:v8.zone","p":"o:v8","k":"group","t":2,"n":"zone","r":[5211,8986,113,914],"loc":{"tree":"deps/v8/src/zone"},"d":"deps/v8/src/zone/"},{"id":"x:deps/v8/include","p":"o:v8","k":"single","t":2,"n":"include","r":[5324,8986,1398,914],"loc":{"tree":"deps/v8/include"},"files":123,"bytes":1358334},{"id":"x:deps/v8/third_party","p":"o:v8","k":"single","t":2,"n":"third_party","r":[6722,800,3178,9100],"loc":{"tree":"deps/v8/third_party"},"files":2245,"bytes":33599037},{"id":"o:libuv","p":"o:world","k":"region","t":1,"n":"libuv (event loop and I/O)","r":[4813,5250,3250,3600],"loc":{"tree":"deps/uv"},"d":"The C library under Node that runs the event loop, the thread pool and all I/O."},{"id":"o:uv.loop","p":"o:libuv","k":"group","t":1,"n":"Event loop","r":[100,2200,4698,3809],"loc":{"tree":"deps/uv/src"},"d":"One turn - pending, idle, prepare, poll (wait for I/O), check, close, timers. uv_run repeats it while there is work."},{"id":"o:loop.run","p":"o:uv.loop","k":"feature","t":2,"n":"uv_run","r":[100,800,891,2730],"loc":[{"path":"deps/uv/src/unix/core.c","start":427,"end":492,"sym":"uv_run","os":"unix"},{"path":"deps/uv/src/win/core.c","start":701,"end":764,"sym":"uv_run","os":"win"}],"d":"The event loop. Runs due timers once, then turns phase by phase while there is work; Unix and Windows have their own copy."},{"id":"o:loop.updateTime","p":"o:uv.loop","k":"feature","t":2,"n":"The loop clock","r":[991,800,891,2730],"loc":[{"path":"deps/uv/src/unix/internal.h","start":467,"end":471,"sym":"uv__update_time","os":"unix"},{"path":"deps/uv/src/win/core.c","start":325,"end":329,"sym":"uv_update_time","os":"win"}],"d":"libuv reads the clock once per turn and caches it; timers are due when their time is not later than this cached time."},{"id":"o:loop.uvClose","p":"o:uv.loop","k":"feature","t":2,"n":"uv_close","r":[1882,800,891,2730],"loc":[{"path":"deps/uv/src/unix/core.c","start":159,"end":238,"sym":"uv_close","os":"unix"},{"path":"deps/uv/src/win/handle.c","start":67,"end":148,"sym":"uv_close","os":"win"}],"d":"Starts closing a handle; its close callback never runs at once but later, in the close phase."},{"id":"o:loop.finishClose","p":"o:uv.loop","k":"feature","t":2,"n":"Close callbacks run","r":[2773,800,891,2730],"loc":[{"path":"deps/uv/src/unix/core.c","start":303,"end":365,"sym":"uv__finish_close","os":"unix"},{"path":"deps/uv/src/win/core.c","start":632,"end":698,"sym":"uv__process_endgames","os":"win"}],"d":"uv__finish_close (called from the close phase) on Unix and uv__process_endgames on Windows call each handle's close callback."},{"id":"o:phase.timers","p":"o:uv.loop","k":"feature","t":2,"n":"Timers phase","r":[3664,800,891,2730],"loc":[{"path":"deps/uv/src/timer.c","start":164,"end":194,"sym":"uv__run_timers"}],"d":"Runs every libuv timer whose time has come. Node has one libuv timer that drives all JavaScript timers."},{"id":"o:phase.pending","p":"o:uv.loop","k":"feature","t":2,"n":"Pending phase","r":[4555,800,891,2730],"loc":[{"path":"deps/uv/src/unix/core.c","start":842,"end":856,"sym":"uv__run_pending","os":"unix"},{"path":"deps/uv/src/win/core.c","start":557,"end":628,"sym":"uv__process_reqs","os":"win"}],"d":"Callbacks deferred from the previous turn. On Windows, completed I/O requests are processed here."},{"id":"o:phase.idle","p":"o:uv.loop","k":"feature","t":2,"n":"Idle phase","r":[5445,800,891,2730],"loc":[{"path":"deps/uv/src/unix/loop-watcher.c","start":68,"end":68,"sym":"uv__run_idle","os":"unix"},{"path":"deps/uv/src/win/loop-watcher.c","start":122,"end":122,"sym":"uv__idle_invoke","os":"win"}],"d":"Idle handles. Node keeps one running while immediates are queued so that the poll phase does not block."},{"id":"o:phase.prepare","p":"o:uv.loop","k":"feature","t":2,"n":"Prepare phase","r":[6336,800,891,2730],"loc":[{"path":"deps/uv/src/unix/loop-watcher.c","start":66,"end":66,"sym":"uv__run_prepare","os":"unix"},{"path":"deps/uv/src/win/loop-watcher.c","start":120,"end":120,"sym":"uv__prepare_invoke","os":"win"}],"d":"Prepare handles, run just before the loop waits for I/O."},{"id":"o:phase.poll","p":"o:uv.loop","k":"feature","t":2,"n":"Poll phase","r":[7227,800,891,2730],"loc":[{"path":"deps/uv/src/unix/linux.c","start":1347,"end":1601,"sym":"uv__io_poll","os":"linux"},{"path":"deps/uv/src/unix/kqueue.c","start":157,"end":452,"sym":"uv__io_poll","os":"darwin"},{"path":"deps/uv/src/win/core.c","start":426,"end":527,"sym":"uv__poll","os":"win"}],"d":"Waits for I/O (epoll, kqueue or an I/O completion port) at most until the next timer is due, then handles what is ready."},{"id":"o:phase.check","p":"o:uv.loop","k":"feature","t":2,"n":"Check phase","r":[8118,800,891,2730],"loc":[{"path":"deps/uv/src/unix/loop-watcher.c","start":67,"end":67,"sym":"uv__run_check","os":"unix"},{"path":"deps/uv/src/win/loop-watcher.c","start":121,"end":121,"sym":"uv__check_invoke","os":"win"}],"d":"Check handles. Node runs setImmediate callbacks here."},{"id":"o:phase.close","p":"o:uv.loop","k":"feature","t":2,"n":"Close phase","r":[9009,800,891,2730],"loc":[{"path":"deps/uv/src/unix/core.c","start":368,"end":380,"sym":"uv__run_closing_handles","os":"unix"},{"path":"deps/uv/src/win/core.c","start":632,"end":698,"sym":"uv__process_endgames","os":"win"}],"d":"Close callbacks of handles that were closed during this turn."},{"id":"o:uv.threadpool","p":"o:libuv","k":"group","t":1,"n":"Thread pool","r":[100,6009,2976,3891],"loc":{"tree":"deps/uv/src"},"d":"Four threads by default (UV_THREADPOOL_SIZE). Runs file system work, dns.lookup, crypto and zlib off the main thread."},{"id":"o:pool.queue_work","p":"o:uv.threadpool","k":"feature","t":2,"n":"uv_queue_work","r":[100,800,1633,2730],"loc":[{"path":"deps/uv/src/threadpool.c","start":379,"end":396,"sym":"uv_queue_work"}],"d":"The public call for \"run this function on the thread pool, then this one on the loop thread\"."},{"id":"o:pool.submit","p":"o:uv.threadpool","k":"feature","t":2,"n":"uv__work_submit","r":[1733,800,1633,2730],"loc":[{"path":"deps/uv/src/threadpool.c","start":276,"end":286,"sym":"uv__work_submit"}],"d":"Queues work for the pool; the first call starts the pool threads."},{"id":"o:pool.post","p":"o:uv.threadpool","k":"feature","t":2,"n":"post","r":[3367,800,1633,2730],"loc":[{"path":"deps/uv/src/threadpool.c","start":143,"end":161,"sym":"post"}],"d":"Appends work to the shared queue (slow I/O such as DNS waits in a separate queue) and wakes an idle thread."},{"id":"o:pool.worker","p":"o:uv.threadpool","k":"feature","t":2,"n":"worker (pool thread)","r":[5000,800,1633,2730],"loc":[{"path":"deps/uv/src/threadpool.c","start":57,"end":140,"sym":"worker"}],"d":"Each pool thread loops here - wait for work, run it, put it on the loop's done queue and wake the loop."},{"id":"o:pool.asyncSend","p":"o:uv.threadpool","k":"feature","t":2,"n":"uv_async_send","r":[6633,800,1633,2730],"loc":[{"path":"deps/uv/src/unix/async.c","start":93,"end":115,"sym":"uv_async_send","os":"unix"},{"path":"deps/uv/src/win/async.c","start":84,"end":101,"sym":"uv_async_send","os":"win"}],"d":"Wakes the loop from another thread - a write to an eventfd or pipe on Unix, a completion packet on Windows."},{"id":"o:pool.done","p":"o:uv.threadpool","k":"feature","t":2,"n":"uv__work_done","r":[8267,800,1633,2730],"loc":[{"path":"deps/uv/src/threadpool.c","start":319,"end":356,"sym":"uv__work_done"}],"d":"On the loop thread, after the wake-up - runs the after-work callback of every finished work item."},{"id":"o:uv.fs","p":"o:libuv","k":"group","t":2,"n":"File operations","r":[3076,6009,1722,3891],"loc":{"tree":"deps/uv/src"},"d":"uv_fs_* - each runs as a blocking system call, on a pool thread when it has a callback."},{"id":"o:uv.net","p":"o:libuv","k":"group","t":2,"n":"Sockets, pipes, TTYs and DNS","r":[4798,2200,3184,4090],"loc":{"tree":"deps/uv/src"},"d":"TCP, UDP, pipes and terminals, and getaddrinfo on the thread pool."},{"id":"o:uv.shutdown","p":"o:uv.net","k":"feature","t":3,"n":"uv_shutdown","r":[100,800,2450,2730],"loc":[{"path":"deps/uv/src/unix/stream.c","start":1161,"end":1187,"sym":"uv_shutdown","os":"unix"},{"path":"deps/uv/src/win/stream.c","start":229,"end":255,"sym":"uv_shutdown","os":"win"}],"d":"Asks to close a stream's write side. Unix: with no write waiting, the stream is put on the pending queue at once; Windows (TCP): a pending request is queued."},{"id":"o:uv.shutdownDone","p":"o:uv.net","k":"feature","t":3,"n":"Shutdown callback runs","r":[2550,800,2450,2730],"loc":[{"path":"deps/uv/src/unix/stream.c","start":625,"end":658,"sym":"uv__drain","os":"unix"},{"path":"deps/uv/src/win/tcp.c","start":278,"end":302,"sym":"uv__process_tcp_shutdown_req","os":"win"}],"d":"Unix: uv__drain calls shutdown(2) and the callback - from the pending phase, or from poll after the last write. Windows (TCP): uv__process_tcp_shutdown_req in the pending phase."},{"id":"o:dns.uvGetaddrinfo","p":"o:uv.net","k":"feature","t":3,"n":"uv_getaddrinfo","r":[5000,800,2450,2730],"loc":[{"path":"deps/uv/src/unix/getaddrinfo.c","start":138,"end":222,"sym":"uv_getaddrinfo","os":"unix"},{"path":"deps/uv/src/win/getaddrinfo.c","start":241,"end":352,"sym":"uv_getaddrinfo","os":"win"}],"d":"Queues a host-name lookup as slow I/O on the thread pool (at most half the pool runs slow I/O at once)."},{"id":"o:dns.getaddrinfoWork","p":"o:uv.net","k":"feature","t":3,"n":"uv__getaddrinfo_work","r":[7450,800,2450,2730],"loc":[{"path":"deps/uv/src/unix/getaddrinfo.c","start":96,"end":103,"sym":"uv__getaddrinfo_work","os":"unix"},{"path":"deps/uv/src/win/getaddrinfo.c","start":82,"end":92,"sym":"uv__getaddrinfo_work","os":"win"}],"d":"Calls the operating system's getaddrinfo (GetAddrInfoW on Windows) on a pool thread."},{"id":"o:uv.backends","p":"o:libuv","k":"group","t":2,"n":"Platform backends","r":[7983,2200,1917,4090],"loc":{"tree":"deps/uv/src/unix"},"d":"The parts of libuv written for one operating system - epoll on Linux, kqueue on macOS and BSD, and more."},{"id":"o:uv.api","p":"o:libuv","k":"group","t":2,"n":"Public API headers","r":[4798,6290,1482,3610],"loc":{"tree":"deps/uv/include"},"d":"uv.h and the platform headers - the API Node's C++ code calls."},{"id":"o:uv.rest","p":"o:libuv","k":"group","t":2,"n":"Other libuv code","r":[6280,6290,3620,3610],"loc":{"tree":"deps/uv/src"},"d":"Processes, signals, file watching, threads and the remaining helpers."},{"id":"o:deps","p":"o:world","k":"region","t":1,"n":"Other bundled libraries","r":[8125,5250,1875,3600],"loc":null,"d":"Third-party code compiled into Node - OpenSSL, c-ares (DNS), llhttp (HTTP parser), zlib and more. Shown as single boxes."},{"id":"x:deps/LIEF","p":"o:deps","k":"single","t":2,"n":"LIEF","r":[100,800,2362,1459],"loc":{"tree":"deps/LIEF"},"files":1540,"bytes":16942087},{"id":"x:deps/acorn","p":"o:deps","k":"single","t":2,"n":"acorn","r":[100,2259,377,286],"loc":{"tree":"deps/acorn"},"files":18,"bytes":622297},{"id":"x:deps/ada","p":"o:deps","k":"single","t":2,"n":"ada","r":[477,2259,753,286],"loc":{"tree":"deps/ada"},"files":8,"bytes":1160983},{"id":"x:deps/amaro","p":"o:deps","k":"single","t":2,"n":"amaro","r":[100,2546,1130,762],"loc":{"tree":"deps/amaro"},"files":18,"bytes":3825072},{"id":"x:deps/brotli","p":"o:deps","k":"single","t":2,"n":"brotli","r":[1230,2259,1232,350],"loc":{"tree":"deps/brotli"},"files":113,"bytes":2148315},{"id":"x:deps/cares","p":"o:deps","k":"single","t":2,"n":"cares","r":[1230,2609,1232,699],"loc":{"tree":"deps/cares"},"files":386,"bytes":4321988},{"id":"x:deps/corepack","p":"o:deps","k":"single","t":2,"n":"corepack","r":[2462,800,2080,52],"loc":{"tree":"deps/corepack"},"files":54,"bytes":607299},{"id":"x:deps/crates","p":"o:deps","k":"single","t":2,"n":"crates","r":[2462,852,2080,2344],"loc":{"tree":"deps/crates"},"files":1792,"bytes":25726519},{"id":"x:deps/googletest","p":"o:deps","k":"single","t":2,"n":"googletest","r":[2462,3195,1914,113],"loc":{"tree":"deps/googletest"},"files":40,"bytes":1006374},{"id":"x:deps/histogram","p":"o:deps","k":"single","t":2,"n":"histogram","r":[4376,3195,166,113],"loc":{"tree":"deps/histogram"},"files":12,"bytes":85075},{"id":"x:deps/icu-small","p":"o:deps","k":"single","t":2,"n":"icu-small","r":[4543,800,2749,2508],"loc":{"tree":"deps/icu-small"},"files":1065,"bytes":33163885},{"id":"x:deps/inspector_protocol","p":"o:deps","k":"single","t":2,"n":"inspector_protocol","r":[7292,800,108,1000],"loc":{"tree":"deps/inspector_protocol"},"files":62,"bytes":454491},{"id":"x:deps/libffi","p":"o:deps","k":"single","t":2,"n":"libffi","r":[7400,800,1219,1000],"loc":{"tree":"deps/libffi"},"files":480,"bytes":5876675},{"id":"x:deps/llhttp","p":"o:deps","k":"single","t":2,"n":"llhttp","r":[7292,1800,407,186],"loc":{"tree":"deps/llhttp"},"files":14,"bytes":400786},{"id":"x:deps/merve","p":"o:deps","k":"single","t":2,"n":"merve","r":[7699,1800,101,186],"loc":{"tree":"deps/merve"},"files":7,"bytes":83634},{"id":"x:deps/minimatch","p":"o:deps","k":"single","t":2,"n":"minimatch","r":[7799,1800,819,186],"loc":{"tree":"deps/minimatch"},"files":55,"bytes":771720},{"id":"x:deps/nbytes","p":"o:deps","k":"single","t":2,"n":"nbytes","r":[8618,800,42,235],"loc":{"tree":"deps/nbytes"},"files":20,"bytes":48165},{"id":"x:deps/ncrypto","p":"o:deps","k":"single","t":2,"n":"ncrypto","r":[8660,800,322,235],"loc":{"tree":"deps/ncrypto"},"files":7,"bytes":361399},{"id":"x:deps/nghttp2","p":"o:deps","k":"single","t":2,"n":"nghttp2","r":[8982,800,918,235],"loc":{"tree":"deps/nghttp2"},"files":70,"bytes":1144257},{"id":"x:deps/ngtcp2","p":"o:deps","k":"single","t":2,"n":"ngtcp2","r":[8618,1035,1282,951],"loc":{"tree":"deps/ngtcp2"},"files":403,"bytes":6361697},{"id":"x:deps/npm","p":"o:deps","k":"single","t":2,"n":"npm","r":[7292,1986,2608,1322],"loc":{"tree":"deps/npm"},"files":2128,"bytes":14608458},{"id":"x:deps/openssl","p":"o:deps","k":"single","t":2,"n":"openssl","r":[100,3308,8368,6592],"loc":{"tree":"deps/openssl"},"files":7076,"bytes":241928880},{"id":"x:deps/perfetto","p":"o:deps","k":"single","t":2,"n":"perfetto","r":[8468,3308,1432,1703],"loc":{"tree":"deps/perfetto"},"files":7,"bytes":11334559},{"id":"x:deps/postject","p":"o:deps","k":"single","t":2,"n":"postject","r":[8468,5011,1432,3],"loc":{"tree":"deps/postject"},"files":4,"bytes":20724},{"id":"x:deps/simdjson","p":"o:deps","k":"single","t":2,"n":"simdjson","r":[8468,5014,1432,1703],"loc":{"tree":"deps/simdjson"},"files":6,"bytes":13703769},{"id":"x:deps/sqlite","p":"o:deps","k":"single","t":2,"n":"sqlite","r":[8468,6717,1432,1703],"loc":{"tree":"deps/sqlite"},"files":6,"bytes":10321504},{"id":"x:deps/undici","p":"o:deps","k":"single","t":2,"n":"undici","r":[8468,8421,1371,629],"loc":{"tree":"deps/undici"},"files":289,"bytes":4081753},{"id":"x:deps/uvwasi","p":"o:deps","k":"single","t":2,"n":"uvwasi","r":[9839,8421,61,629],"loc":{"tree":"deps/uvwasi"},"files":25,"bytes":211015},{"id":"x:deps/zlib","p":"o:deps","k":"single","t":2,"n":"zlib","r":[8468,9049,716,851],"loc":{"tree":"deps/zlib"},"files":197,"bytes":3138075},{"id":"x:deps/zstd","p":"o:deps","k":"single","t":2,"n":"zstd","r":[9184,9049,716,851],"loc":{"tree":"deps/zstd"},"files":104,"bytes":3251612},{"id":"o:os","p":"o:world","k":"region","t":1,"n":"Operating system","r":[0,8950,10000,1050],"loc":null,"d":"The kernel. libuv talks to it through system calls; nothing here is Node's code, so each box links to the libuv code that makes the call."},{"id":"o:os.os","p":"o:os","k":"group","t":2,"n":"Kernel interfaces used by libuv","r":[100,800,9800,9100],"loc":null,"d":"Where libuv waits for I/O, makes file system calls and wakes the loop from another thread."},{"id":"o:os.epoll","p":"o:os.os","k":"feature","t":3,"n":"epoll (Linux)","r":[100,800,1960,9100],"loc":[{"path":"deps/uv/src/unix/linux.c","start":1347,"end":1601,"sym":"uv__io_poll","os":"linux"}],"d":"libuv waits for I/O with epoll_wait."},{"id":"o:os.kqueue","p":"o:os.os","k":"feature","t":3,"n":"kqueue (macOS, BSD)","r":[2060,800,1960,9100],"loc":[{"path":"deps/uv/src/unix/kqueue.c","start":157,"end":452,"sym":"uv__io_poll","os":"darwin"}],"d":"libuv waits for I/O with kevent."},{"id":"o:os.iocp","p":"o:os.os","k":"feature","t":3,"n":"I/O completion port (Windows)","r":[4020,800,1960,9100],"loc":[{"path":"deps/uv/src/win/core.c","start":426,"end":527,"sym":"uv__poll","os":"win"}],"d":"libuv waits with GetQueuedCompletionStatusEx."},{"id":"o:os.files","p":"o:os.os","k":"feature","t":3,"n":"File system calls","r":[5980,800,1960,9100],"loc":[{"path":"deps/uv/src/unix/fs.c","start":1679,"end":1748,"sym":"uv__fs_work","os":"unix"},{"path":"deps/uv/src/win/fs.c","start":3164,"end":3211,"sym":"uv__fs_work","os":"win"}],"d":"open, fstat, read and close (CreateFileW, ReadFile and friends on Windows), made from a pool thread."},{"id":"o:os.wakeup","p":"o:os.os","k":"feature","t":3,"n":"Cross-thread wakeup","r":[7940,800,1960,9100],"loc":[{"path":"deps/uv/src/unix/async.c","start":213,"end":255,"sym":"uv__async_send","os":"unix"},{"path":"deps/uv/src/win/async.c","start":84,"end":101,"sym":"uv_async_send","os":"win"}],"d":"A write to an eventfd or pipe (Unix) or a posted completion packet (Windows) wakes the waiting loop."}],"paths":[{"id":"p:crypto-pbkdf2","title":"crypto.pbkdf2(...): a CPU job on the thread pool","desc":"pbkdf2 with a callback creates a C++ PBKDF2Job (a DeriveBitsJob) and runs it on the libuv thread pool through ThreadPoolWork. async_hooks reports it as PBKDF2REQUEST. The derivation itself is OpenSSL code running on a pool thread; the callback runs on the main thread in the poll phase.","certainty":"model","steps":[{"id":"p:crypto-pbkdf2/js-pbkdf2","title":"crypto.pbkdf2()","desc":"Validates the arguments, creates a PBKDF2Job in async mode, sets job.ondone and calls job.run().","thread":"main","locs":[{"path":"lib/internal/crypto/pbkdf2.js","start":39,"end":66,"sym":"pbkdf2","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/crypto/pbkdf2.js#L39-L66"}],"box":"o:crypto.pbkdf2"},{"id":"p:crypto-pbkdf2/job-run","title":"CryptoJob::Run","desc":"In async mode the job is not run now but scheduled on the thread pool.","thread":"main","locs":[{"path":"src/crypto/crypto_util.h","start":458,"end":488,"sym":"node::crypto::CryptoJob::Run","cond":"defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/crypto/crypto_util.h#L458-L488"}],"box":"o:crypto.jobRun"},{"id":"p:crypto-pbkdf2/schedule-work","title":"ThreadPoolWork::ScheduleWork","desc":"Calls uv_queue_work with the job's work and after-work callbacks.","thread":"main","locs":[{"path":"src/threadpoolwork-inl.h","start":33,"end":60,"sym":"node::ThreadPoolWork::ScheduleWork","cond":"defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/threadpoolwork-inl.h#L33-L60"}],"box":"o:cb.ScheduleWork"},{"id":"p:crypto-pbkdf2/uv-queue-work","title":"uv_queue_work","desc":"The job becomes a CPU work item for the pool.","thread":"main","locs":[{"path":"deps/uv/src/threadpool.c","start":379,"end":396,"sym":"uv_queue_work","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L379-L396"}],"box":"o:pool.queue_work"},{"id":"p:crypto-pbkdf2/post","title":"uv__work_submit and post()","desc":"The item is appended to the shared work queue and an idle pool thread is signalled.","thread":"main","locs":[{"path":"deps/uv/src/threadpool.c","start":143,"end":161,"sym":"post","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L143-L161"}],"box":"o:pool.post"},{"id":"p:crypto-pbkdf2/worker","title":"A pool thread runs the job","desc":"worker() takes the item and calls the work callback.","thread":"pool","locs":[{"path":"deps/uv/src/threadpool.c","start":57,"end":140,"sym":"worker","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L57-L140"}],"box":"o:pool.worker"},{"id":"p:crypto-pbkdf2/do-work","title":"DeriveBitsJob::DoThreadPoolWork","desc":"Calls the job's DeriveBits and records an error if it fails.","thread":"pool","locs":[{"path":"src/crypto/crypto_util.h","start":627,"end":643,"sym":"node::crypto::DeriveBitsJob::DoThreadPoolWork","cond":"defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/crypto/crypto_util.h#L627-L643"}],"box":"o:crypto.deriveBitsWork"},{"id":"p:crypto-pbkdf2/derive-bits","title":"PBKDF2Traits::DeriveBits","desc":"Runs PBKDF2 with OpenSSL for the requested number of iterations - the expensive part.","thread":"pool","locs":[{"path":"src/crypto/crypto_pbkdf2.cc","start":116,"end":145,"sym":"node::crypto::PBKDF2Traits::DeriveBits","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/crypto/crypto_pbkdf2.cc#L116-L145"}],"box":"o:crypto.pbkdf2DeriveBits"},{"id":"p:crypto-pbkdf2/wake","title":"uv_async_send","desc":"The finished item goes on the loop's done queue and the loop is woken.","thread":"pool","locs":[{"path":"deps/uv/src/unix/async.c","start":93,"end":115,"sym":"uv_async_send","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/async.c#L93-L115"},{"path":"deps/uv/src/win/async.c","start":84,"end":101,"sym":"uv_async_send","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/async.c#L84-L101"}],"box":"o:pool.asyncSend"},{"id":"p:crypto-pbkdf2/work-done","title":"uv__work_done","desc":"In the poll phase (Unix) or right after it (Windows), runs the item's after-work callback.","thread":"main","locs":[{"path":"deps/uv/src/threadpool.c","start":319,"end":356,"sym":"uv__work_done","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L319-L356"}],"box":"o:pool.done"},{"id":"p:crypto-pbkdf2/after-work","title":"CryptoJob::AfterThreadPoolWork","desc":"Turns the result into JavaScript values and calls job.ondone through MakeCallback.","thread":"main","locs":[{"path":"src/crypto/crypto_util.h","start":360,"end":438,"sym":"node::crypto::CryptoJob::AfterThreadPoolWork","cond":"defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/crypto/crypto_util.h#L360-L438"}],"box":"o:crypto.jobAfter"},{"id":"p:crypto-pbkdf2/make-callback","title":"AsyncWrap::MakeCallback","desc":"Calls ondone between async_hooks before and after events for the PBKDF2REQUEST.","thread":"main","locs":[{"path":"src/async_wrap.cc","start":672,"end":690,"sym":"node::AsyncWrap::MakeCallback","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/async_wrap.cc#L672-L690"}],"box":"o:cb.MakeCallback"},{"id":"p:crypto-pbkdf2/js-ondone","title":"job.ondone","desc":"The arrow function set in pbkdf2() copies the key into a Buffer and calls your callback.","thread":"main","locs":[{"path":"lib/internal/crypto/pbkdf2.js","start":39,"end":66,"sym":"pbkdf2","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/crypto/pbkdf2.js#L39-L66"}],"box":"o:crypto.pbkdf2"},{"id":"p:crypto-pbkdf2/scope-close","title":"InternalCallbackScope::Close","desc":"After your callback, nextTicks and microtasks are drained.","thread":"main","locs":[{"path":"src/api/callback.cc","start":138,"end":213,"sym":"node::InternalCallbackScope::Close","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/api/callback.cc#L138-L213"}],"box":"o:cb.ScopeClose"}],"branches":[]},{"id":"p:dns-lookup","title":"dns.lookup(host, callback): getaddrinfo on the thread pool","desc":"dns.lookup uses the operating system's resolver, not c-ares: libuv runs getaddrinfo on a pool thread. It is queued as slow I/O, so at most half of the pool threads run lookups at the same time, and a slow DNS server can still delay fs and crypto work queued behind it.","certainty":"model","steps":[{"id":"p:dns-lookup/js-lookup","title":"dns.lookup()","desc":"Validates the arguments, creates a GetAddrInfoReqWrap with oncomplete set and calls the binding.","thread":"main","locs":[{"path":"lib/dns.js","start":143,"end":252,"sym":"lookup","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/dns.js#L143-L252"}],"box":"o:dns.lookup"},{"id":"p:dns-lookup/get-addr-info","title":"GetAddrInfo (C++)","desc":"Converts the host name to ASCII and dispatches uv_getaddrinfo with AfterGetAddrInfo as the callback.","thread":"main","locs":[{"path":"src/cares_wrap.cc","start":1976,"end":2040,"sym":"node::cares_wrap::GetAddrInfo","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/cares_wrap.cc#L1976-L2040"}],"box":"o:dns.getAddrInfo"},{"id":"p:dns-lookup/uv-getaddrinfo","title":"uv_getaddrinfo","desc":"Copies the host name and hints and submits the lookup as slow I/O work.","thread":"main","locs":[{"path":"deps/uv/src/unix/getaddrinfo.c","start":138,"end":222,"sym":"uv_getaddrinfo","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/getaddrinfo.c#L138-L222"},{"path":"deps/uv/src/win/getaddrinfo.c","start":241,"end":352,"sym":"uv_getaddrinfo","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/getaddrinfo.c#L241-L352"}],"box":"o:dns.uvGetaddrinfo"},{"id":"p:dns-lookup/post","title":"post() - slow I/O queue","desc":"Slow I/O goes to its own queue; a marker in the main queue lets a free thread pick it up within the limit.","thread":"main","locs":[{"path":"deps/uv/src/threadpool.c","start":143,"end":161,"sym":"post","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L143-L161"}],"box":"o:pool.post"},{"id":"p:dns-lookup/worker","title":"A pool thread runs the lookup","desc":"worker() takes the slow I/O item, unless half of the threads are already busy with slow I/O.","thread":"pool","locs":[{"path":"deps/uv/src/threadpool.c","start":57,"end":140,"sym":"worker","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L57-L140"}],"box":"o:pool.worker"},{"id":"p:dns-lookup/getaddrinfo-work","title":"uv__getaddrinfo_work","desc":"Calls getaddrinfo (GetAddrInfoW on Windows), which may block for as long as the resolver takes.","thread":"pool","locs":[{"path":"deps/uv/src/unix/getaddrinfo.c","start":96,"end":103,"sym":"uv__getaddrinfo_work","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/getaddrinfo.c#L96-L103"},{"path":"deps/uv/src/win/getaddrinfo.c","start":82,"end":92,"sym":"uv__getaddrinfo_work","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/getaddrinfo.c#L82-L92"}],"box":"o:dns.getaddrinfoWork"},{"id":"p:dns-lookup/wake","title":"uv_async_send","desc":"The finished item goes on the loop's done queue and the loop is woken.","thread":"pool","locs":[{"path":"deps/uv/src/unix/async.c","start":93,"end":115,"sym":"uv_async_send","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/async.c#L93-L115"},{"path":"deps/uv/src/win/async.c","start":84,"end":101,"sym":"uv_async_send","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/async.c#L84-L101"}],"box":"o:pool.asyncSend"},{"id":"p:dns-lookup/work-done","title":"uv__work_done","desc":"Runs the done callback of the finished lookup.","thread":"main","locs":[{"path":"deps/uv/src/threadpool.c","start":319,"end":356,"sym":"uv__work_done","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L319-L356"}],"box":"o:pool.done"},{"id":"p:dns-lookup/getaddrinfo-done","title":"uv__getaddrinfo_done","desc":"Unregisters the request and calls its callback with the result list.","thread":"main","locs":[{"path":"deps/uv/src/unix/getaddrinfo.c","start":106,"end":135,"sym":"uv__getaddrinfo_done","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/getaddrinfo.c#L106-L135"},{"path":"deps/uv/src/win/getaddrinfo.c","start":104,"end":217,"sym":"uv__getaddrinfo_done","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/getaddrinfo.c#L104-L217"}]},{"id":"p:dns-lookup/after-get-addr-info","title":"AfterGetAddrInfo","desc":"Turns the addresses into strings in the requested order and calls oncomplete in JavaScript.","thread":"main","locs":[{"path":"src/cares_wrap.cc","start":1823,"end":1905,"sym":"node::cares_wrap::AfterGetAddrInfo","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/cares_wrap.cc#L1823-L1905"}],"box":"o:dns.afterGetAddrInfo"},{"id":"p:dns-lookup/onlookup","title":"onlookup","desc":"Back in JavaScript; calls your callback with the first address (onlookupall when all: true).","thread":"main","locs":[{"path":"lib/dns.js","start":109,"end":117,"sym":"onlookup","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/dns.js#L109-L117"}]},{"id":"p:dns-lookup/scope-close","title":"InternalCallbackScope::Close","desc":"After your callback, nextTicks and microtasks are drained.","thread":"main","locs":[{"path":"src/api/callback.cc","start":138,"end":213,"sym":"node::InternalCallbackScope::Close","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/api/callback.cc#L138-L213"}],"box":"o:cb.ScopeClose"}],"branches":[]},{"id":"p:event-loop-turn","title":"One turn of the event loop (uv_run), on Unix and Windows","desc":"Node calls uv_run in UV_RUN_DEFAULT mode. Due timers run once before the first turn; then each turn runs pending, idle, prepare, poll, pending again (up to 8 times), check, close and timers, and the loop repeats while handles or requests keep it alive. Unix and Windows have separate implementations of uv_run with the same order.","certainty":"model","steps":[{"id":"p:event-loop-turn/spin","title":"SpinEventLoopInternal","desc":"Node's loop driver calls uv_run, and calls it again if the loop is still alive after beforeExit.","thread":"main","locs":[{"path":"src/api/embed_helpers.cc","start":23,"end":78,"sym":"node::SpinEventLoopInternal","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/api/embed_helpers.cc#L23-L78"}],"box":"o:loop.spin"},{"id":"p:event-loop-turn/uv-run","title":"uv_run","desc":"Checks whether the loop is alive and, in default mode, runs the due timers once before the first turn.","thread":"main","locs":[{"path":"deps/uv/src/unix/core.c","start":427,"end":492,"sym":"uv_run","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/core.c#L427-L492"},{"path":"deps/uv/src/win/core.c","start":701,"end":764,"sym":"uv_run","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L701-L764"}],"box":"o:loop.run"},{"id":"p:event-loop-turn/alive","title":"Is the loop alive?","desc":"The loop is alive while it has active ref'ed handles, active requests, pending callbacks or handles being closed.","thread":"main","locs":[{"path":"deps/uv/src/unix/core.c","start":393,"end":398,"sym":"uv__loop_alive","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/core.c#L393-L398"},{"path":"deps/uv/src/win/core.c","start":401,"end":406,"sym":"uv__loop_alive","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L401-L406"}]},{"id":"p:event-loop-turn/pending","title":"1. Pending","desc":"Callbacks deferred from the previous turn; on Windows, completed I/O requests.","thread":"main","locs":[{"path":"deps/uv/src/unix/core.c","start":842,"end":856,"sym":"uv__run_pending","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/core.c#L842-L856"},{"path":"deps/uv/src/win/core.c","start":557,"end":628,"sym":"uv__process_reqs","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L557-L628"}],"box":"o:phase.pending"},{"id":"p:event-loop-turn/idle","title":"2. Idle","desc":"Idle handles; Node's is active while immediates are waiting.","thread":"main","locs":[{"path":"deps/uv/src/unix/loop-watcher.c","start":68,"end":68,"sym":"uv__run_idle","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/loop-watcher.c#L68"},{"path":"deps/uv/src/win/loop-watcher.c","start":122,"end":122,"sym":"uv__idle_invoke","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/loop-watcher.c#L122"}],"box":"o:phase.idle"},{"id":"p:event-loop-turn/prepare","title":"3. Prepare","desc":"Prepare handles, right before waiting for I/O.","thread":"main","locs":[{"path":"deps/uv/src/unix/loop-watcher.c","start":66,"end":66,"sym":"uv__run_prepare","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/loop-watcher.c#L66"},{"path":"deps/uv/src/win/loop-watcher.c","start":120,"end":120,"sym":"uv__prepare_invoke","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/loop-watcher.c#L120"}],"box":"o:phase.prepare"},{"id":"p:event-loop-turn/timeout","title":"How long to wait","desc":"Zero if anything is pending, idle or closing; otherwise the time until the earliest timer, or forever if there is none.","thread":"main","locs":[{"path":"deps/uv/src/unix/core.c","start":401,"end":411,"sym":"uv__backend_timeout","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/core.c#L401-L411"},{"path":"deps/uv/src/win/core.c","start":414,"end":423,"sym":"uv_backend_timeout","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L414-L423"}]},{"id":"p:event-loop-turn/poll","title":"4. Poll","desc":"Waits for I/O up to that timeout; on Unix the ready callbacks run inside this phase.","thread":"main","locs":[{"path":"deps/uv/src/unix/linux.c","start":1347,"end":1601,"sym":"uv__io_poll","os":"linux","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/linux.c#L1347-L1601"},{"path":"deps/uv/src/unix/kqueue.c","start":157,"end":452,"sym":"uv__io_poll","os":"darwin","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/kqueue.c#L157-L452"},{"path":"deps/uv/src/win/core.c","start":426,"end":527,"sym":"uv__poll","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L426-L527"}],"box":"o:phase.poll"},{"id":"p:event-loop-turn/pending-again","title":"5. Pending again (up to 8 rounds)","desc":"Callbacks that poll deferred; on Windows this is where completed I/O, including thread-pool results, is handled.","thread":"main","locs":[{"path":"deps/uv/src/unix/core.c","start":842,"end":856,"sym":"uv__run_pending","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/core.c#L842-L856"},{"path":"deps/uv/src/win/core.c","start":557,"end":628,"sym":"uv__process_reqs","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L557-L628"}],"box":"o:phase.pending"},{"id":"p:event-loop-turn/check","title":"6. Check","desc":"Check handles; Node's runs the setImmediate queue.","thread":"main","locs":[{"path":"deps/uv/src/unix/loop-watcher.c","start":67,"end":67,"sym":"uv__run_check","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/loop-watcher.c#L67"},{"path":"deps/uv/src/win/loop-watcher.c","start":121,"end":121,"sym":"uv__check_invoke","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/loop-watcher.c#L121"}],"box":"o:phase.check"},{"id":"p:event-loop-turn/close","title":"7. Close","desc":"Close callbacks of handles closed during the turn.","thread":"main","locs":[{"path":"deps/uv/src/unix/core.c","start":368,"end":380,"sym":"uv__run_closing_handles","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/core.c#L368-L380"},{"path":"deps/uv/src/win/core.c","start":632,"end":698,"sym":"uv__process_endgames","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L632-L698"}],"box":"o:phase.close"},{"id":"p:event-loop-turn/update-time","title":"Update the loop time","desc":"The cached loop time is refreshed once, just before the timers run.","thread":"main","locs":[{"path":"deps/uv/src/unix/internal.h","start":467,"end":471,"sym":"uv__update_time","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/internal.h#L467-L471"},{"path":"deps/uv/src/win/core.c","start":325,"end":329,"sym":"uv_update_time","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L325-L329"}],"box":"o:loop.updateTime"},{"id":"p:event-loop-turn/timers","title":"8. Timers","desc":"Runs every timer whose time is not later than the loop time; Node's single timer runs all due JavaScript timers.","thread":"main","locs":[{"path":"deps/uv/src/timer.c","start":164,"end":194,"sym":"uv__run_timers","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/timer.c#L164-L194"}],"box":"o:phase.timers"}],"branches":[]},{"id":"p:fs-readFile","title":"fs.readFile(path, callback): to the thread pool and back","desc":"Without a `buffer` option, fs.readFile reads a small file in ONE thread-pool job: a C++ ReadFileJob runs open, fstat, read and close as synchronous libuv calls on a pool thread. Larger files come back as an open file descriptor and continue in the chunked reader (branch).","certainty":"model","steps":[{"id":"p:fs-readFile/js-readFile","title":"fs.readFile()","desc":"Validates the arguments and creates a ReadFileJob for the path.","thread":"main","locs":[{"path":"lib/fs.js","start":422,"end":473,"sym":"readFile","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/fs.js#L422-L473"}],"box":"o:fs.readFile"},{"id":"p:fs-readFile/binding-new","title":"new ReadFileJob(...)","desc":"Enters C++ through the fs binding and creates the job object.","thread":"main","locs":[{"path":"src/node_file.cc","start":3593,"end":3611,"sym":"node::fs::ReadFileJob::New","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node_file.cc#L3593-L3611"}]},{"id":"p:fs-readFile/binding-registration","title":"Where ReadFileJob is registered","desc":"The fs binding exposes the ReadFileJob class and its run method to JavaScript here.","thread":"main","locs":[{"path":"src/node_file.cc","start":5626,"end":5766,"sym":"node::fs::CreatePerIsolateProperties","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node_file.cc#L5626-L5766"}],"box":"o:fs.binding.register"},{"id":"p:fs-readFile/binding-run","title":"job.run(path)","desc":"Checks permissions and schedules the job on the thread pool.","thread":"main","locs":[{"path":"src/node_file.cc","start":3616,"end":3634,"sym":"node::fs::ReadFileJob::Run","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node_file.cc#L3616-L3634"}],"box":"o:fs.ReadFileJob.Run"},{"id":"p:fs-readFile/schedule-work","title":"ThreadPoolWork::ScheduleWork","desc":"Calls uv_queue_work with two lambdas, one for the pool thread and one for afterwards.","thread":"main","locs":[{"path":"src/threadpoolwork-inl.h","start":33,"end":60,"sym":"node::ThreadPoolWork::ScheduleWork","cond":"defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/threadpoolwork-inl.h#L33-L60"}],"box":"o:cb.ScheduleWork"},{"id":"p:fs-readFile/uv-queue-work","title":"uv_queue_work","desc":"Wraps the request as CPU work for the pool.","thread":"main","locs":[{"path":"deps/uv/src/threadpool.c","start":379,"end":396,"sym":"uv_queue_work","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L379-L396"}],"box":"o:pool.queue_work"},{"id":"p:fs-readFile/uv-work-submit","title":"uv__work_submit","desc":"Starts the pool threads if this is the first work item, then posts the item.","thread":"main","locs":[{"path":"deps/uv/src/threadpool.c","start":276,"end":286,"sym":"uv__work_submit","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L276-L286"}],"box":"o:pool.submit"},{"id":"p:fs-readFile/uv-post","title":"post()","desc":"Appends the item to the shared work queue and signals an idle pool thread.","thread":"main","locs":[{"path":"deps/uv/src/threadpool.c","start":143,"end":161,"sym":"post","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L143-L161"}],"box":"o:pool.post"},{"id":"p:fs-readFile/pool-worker","title":"A pool thread takes the item","desc":"The waiting worker wakes up, removes the item from the queue and runs it.","thread":"pool","locs":[{"path":"deps/uv/src/threadpool.c","start":57,"end":140,"sym":"worker","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L57-L140"}],"box":"o:pool.worker"},{"id":"p:fs-readFile/pool-queue-work","title":"uv__queue_work","desc":"Calls the work callback, the first lambda in ScheduleWork.","thread":"pool","locs":[{"path":"deps/uv/src/threadpool.c","start":359,"end":363,"sym":"uv__queue_work","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L359-L363"}]},{"id":"p:fs-readFile/pool-do-work","title":"ReadFileJob::DoThreadPoolWork","desc":"Opens, stats, reads and closes the file with synchronous uv_fs_* calls.","thread":"pool","locs":[{"path":"src/node_file.cc","start":3636,"end":3710,"sym":"node::fs::ReadFileJob::DoThreadPoolWork","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node_file.cc#L3636-L3710"}],"box":"o:fs.ReadFileJob.DoThreadPoolWork"},{"id":"p:fs-readFile/pool-uv-fs-open","title":"uv_fs_open without a callback","desc":"With no callback the POST macro runs the operation right here instead of queueing it.","thread":"pool","locs":[{"path":"deps/uv/src/unix/fs.c","start":1999,"end":2013,"sym":"uv_fs_open","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/fs.c#L1999-L2013"},{"path":"deps/uv/src/win/fs.c","start":3261,"end":3275,"sym":"uv_fs_open","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/fs.c#L3261-L3275"}]},{"id":"p:fs-readFile/pool-fs-work","title":"uv__fs_work","desc":"Dispatches on the request type (open, fstat, read, close).","thread":"pool","locs":[{"path":"deps/uv/src/unix/fs.c","start":1679,"end":1748,"sym":"uv__fs_work","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/fs.c#L1679-L1748"},{"path":"deps/uv/src/win/fs.c","start":3164,"end":3211,"sym":"uv__fs_work","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/fs.c#L3164-L3211"}]},{"id":"p:fs-readFile/pool-syscall-open","title":"The system call","desc":"open(2) on Unix, CreateFileW on Windows; fstat, read and close follow the same route.","thread":"pool","locs":[{"path":"deps/uv/src/unix/fs.c","start":362,"end":388,"sym":"uv__fs_open","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/fs.c#L362-L388"},{"path":"deps/uv/src/win/fs.c","start":444,"end":697,"sym":"fs__open","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/fs.c#L444-L697"}],"box":"o:os.files"},{"id":"p:fs-readFile/pool-async-send","title":"uv_async_send","desc":"Back in worker(), the finished item goes on the loop's done queue and the loop is woken.","thread":"pool","locs":[{"path":"deps/uv/src/unix/async.c","start":93,"end":115,"sym":"uv_async_send","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/async.c#L93-L115"},{"path":"deps/uv/src/win/async.c","start":84,"end":101,"sym":"uv_async_send","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/async.c#L84-L101"}],"box":"o:pool.asyncSend"},{"id":"p:fs-readFile/pool-wakeup-write","title":"The wake-up write","desc":"On Unix the wake-up is one write to an eventfd or a pipe that the loop is watching.","thread":"pool","locs":[{"path":"deps/uv/src/unix/async.c","start":213,"end":255,"sym":"uv__async_send","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/async.c#L213-L255"}],"os":"unix","box":"o:os.wakeup"},{"id":"p:fs-readFile/loop-spin","title":"Meanwhile, the loop driver","desc":"The main thread has been inside Node's loop driver, which keeps calling uv_run.","thread":"main","locs":[{"path":"src/api/embed_helpers.cc","start":23,"end":78,"sym":"node::SpinEventLoopInternal","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/api/embed_helpers.cc#L23-L78"}],"box":"o:loop.spin"},{"id":"p:fs-readFile/loop-run","title":"uv_run, in the poll phase","desc":"The loop was waiting for I/O in the poll phase.","thread":"main","locs":[{"path":"deps/uv/src/unix/core.c","start":427,"end":492,"sym":"uv_run","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/core.c#L427-L492"},{"path":"deps/uv/src/win/core.c","start":701,"end":764,"sym":"uv_run","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L701-L764"}],"box":"o:loop.run"},{"id":"p:fs-readFile/loop-poll","title":"The poll phase wakes up","desc":"epoll_wait (Linux), kevent (macOS) or GetQueuedCompletionStatusEx (Windows) returns.","thread":"main","locs":[{"path":"deps/uv/src/unix/linux.c","start":1347,"end":1601,"sym":"uv__io_poll","os":"linux","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/linux.c#L1347-L1601"},{"path":"deps/uv/src/unix/kqueue.c","start":157,"end":452,"sym":"uv__io_poll","os":"darwin","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/kqueue.c#L157-L452"},{"path":"deps/uv/src/win/core.c","start":426,"end":527,"sym":"uv__poll","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L426-L527"}],"box":"o:phase.poll"},{"id":"p:fs-readFile/loop-dispatch-unix","title":"Unix: the async watcher is ready","desc":"Inside the poll phase, uv__io_cb sees that the ready watcher is the loop's async (wake-up) watcher.","thread":"main","locs":[{"path":"deps/uv/src/unix/core.c","start":906,"end":938,"sym":"uv__io_cb","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/core.c#L906-L938"}],"os":"unix"},{"id":"p:fs-readFile/loop-async-io-unix","title":"Unix: uv__async_io","desc":"Drains the eventfd or pipe and calls the callback of every async handle that was sent.","thread":"main","locs":[{"path":"deps/uv/src/unix/async.c","start":160,"end":210,"sym":"uv__async_io","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/async.c#L160-L210"}],"os":"unix"},{"id":"p:fs-readFile/loop-dispatch-win","title":"Windows: the packet is processed after poll","desc":"uv__poll only queues the completion packet; the pending loop right after poll handles it.","thread":"main","locs":[{"path":"deps/uv/src/win/core.c","start":557,"end":628,"sym":"uv__process_reqs","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L557-L628"}],"os":"win","box":"o:phase.pending"},{"id":"p:fs-readFile/loop-async-wakeup-win","title":"Windows: uv__process_async_wakeup_req","desc":"Calls the async handle's callback for the wake-up packet.","thread":"main","locs":[{"path":"deps/uv/src/win/async.c","start":104,"end":116,"sym":"uv__process_async_wakeup_req","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/async.c#L104-L116"}],"os":"win"},{"id":"p:fs-readFile/loop-work-done","title":"uv__work_done","desc":"Runs the done callback of every finished work item.","thread":"main","locs":[{"path":"deps/uv/src/threadpool.c","start":319,"end":356,"sym":"uv__work_done","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L319-L356"}],"box":"o:pool.done"},{"id":"p:fs-readFile/loop-queue-done","title":"uv__queue_done","desc":"Calls the after-work callback, the second lambda in ScheduleWork.","thread":"main","locs":[{"path":"deps/uv/src/threadpool.c","start":366,"end":376,"sym":"uv__queue_done","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/threadpool.c#L366-L376"}]},{"id":"p:fs-readFile/after-work","title":"ReadFileJob::AfterThreadPoolWork","desc":"Builds the Buffer (or the error) and calls job.ondone in JavaScript.","thread":"main","locs":[{"path":"src/node_file.cc","start":3712,"end":3756,"sym":"node::fs::ReadFileJob::AfterThreadPoolWork","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node_file.cc#L3712-L3756"}],"box":"o:fs.ReadFileJob.AfterThreadPoolWork"},{"id":"p:fs-readFile/make-callback-name","title":"AsyncWrap::MakeCallback(name)","desc":"Looks up the ondone property on the job object.","thread":"main","locs":[{"path":"src/async_wrap-inl.h","start":90,"end":102,"sym":"node::AsyncWrap::MakeCallback","cond":"defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/async_wrap-inl.h#L90-L102"}]},{"id":"p:fs-readFile/make-callback","title":"AsyncWrap::MakeCallback(function)","desc":"Does the async_hooks bookkeeping and trace events around the call.","thread":"main","locs":[{"path":"src/async_wrap.cc","start":672,"end":690,"sym":"node::AsyncWrap::MakeCallback","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/async_wrap.cc#L672-L690"}],"box":"o:cb.MakeCallback"},{"id":"p:fs-readFile/internal-make-callback","title":"InternalMakeCallback","desc":"Opens an InternalCallbackScope and calls the JavaScript function.","thread":"main","locs":[{"path":"src/api/callback.cc","start":215,"end":276,"sym":"node::InternalMakeCallback","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/api/callback.cc#L215-L276"}],"box":"o:cb.InternalMakeCallback"},{"id":"p:fs-readFile/js-after-oneshot","title":"readFileAfterOneShot","desc":"Back in JavaScript; decodes the buffer if an encoding was given and calls your callback.","thread":"main","locs":[{"path":"lib/fs.js","start":475,"end":517,"sym":"readFileAfterOneShot","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/fs.js#L475-L517"}],"box":"o:fs.readFileAfterOneShot"},{"id":"p:fs-readFile/scope-close","title":"InternalCallbackScope::Close","desc":"Your callback has returned; the scope drains nextTicks and microtasks.","thread":"main","locs":[{"path":"src/api/callback.cc","start":138,"end":213,"sym":"node::InternalCallbackScope::Close","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/api/callback.cc#L138-L213"}],"box":"o:cb.ScopeClose"},{"id":"p:fs-readFile/microtask-checkpoint","title":"No nextTick queued","desc":"V8 runs the microtask queue directly through a checkpoint.","thread":"main","locs":[{"path":"deps/v8/src/execution/microtask-queue.h","start":46,"end":49,"sym":"v8::internal::MicrotaskQueue::PerformCheckpoint","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/execution/microtask-queue.h#L46-L49"}],"box":"o:microtask.checkpoint"},{"id":"p:fs-readFile/tick-drain","title":"nextTick queued","desc":"The tick callback processTicksAndRejections runs the ticks, then the microtasks, until both are empty.","thread":"main","locs":[{"path":"lib/internal/process/task_queues.js","start":72,"end":109,"sym":"processTicksAndRejections","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/process/task_queues.js#L72-L109"}],"box":"o:tick.drain"},{"id":"p:fs-readFile/run-microtasks-binding","title":"runMicrotasks()","desc":"A C++ binding that asks V8 for a microtask checkpoint.","thread":"main","locs":[{"path":"src/node_task_queue.cc","start":140,"end":143,"sym":"node::task_queue::RunMicrotasks","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node_task_queue.cc#L140-L143"}],"box":"o:microtask.binding"},{"id":"p:fs-readFile/v8-run-microtasks","title":"MicrotaskQueue::RunMicrotasks","desc":"V8 runs every queued microtask, such as promise reactions.","thread":"main","locs":[{"path":"deps/v8/src/execution/microtask-queue.cc","start":153,"end":215,"sym":"v8::internal::MicrotaskQueue::RunMicrotasks","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/execution/microtask-queue.cc#L153-L215"}],"box":"o:microtask.run"}],"branches":[{"id":"p:fs-readFile/large-file","title":"Larger than one chunk, or a `buffer` option: the chunked reader","desc":"Each chunk is its own fs read request and its own thread-pool round trip; with `buffer`, open and fstat come first.","steps":[{"id":"p:fs-readFile/large-file/ctx-read","title":"ReadFileContext.read()","desc":"Issues binding.read() for the next chunk with an FSReqCallback request.","thread":"main","locs":[{"path":"lib/internal/fs/read/context.js","start":135,"end":178,"sym":"ReadFileContext.prototype.read","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/fs/read/context.js#L135-L178"}],"box":"o:fs.ReadFileContext.read"},{"id":"p:fs-readFile/large-file/binding-read","title":"fs::Read (C++)","desc":"Starts an asynchronous uv_fs_read with AfterInteger as the completion callback.","thread":"main","locs":[{"path":"src/node_file.cc","start":3380,"end":3441,"sym":"node::fs::Read","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node_file.cc#L3380-L3441"}]},{"id":"p:fs-readFile/large-file/uv-fs-read","title":"uv_fs_read with a callback","desc":"The POST macro queues the read with uv__work_submit; Linux io_uring is used only when explicitly enabled.","thread":"main","locs":[{"path":"deps/uv/src/unix/fs.c","start":2016,"end":2049,"sym":"uv_fs_read","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/fs.c#L2016-L2049"},{"path":"deps/uv/src/win/fs.c","start":3285,"end":3315,"sym":"uv_fs_read","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/fs.c#L3285-L3315"}]},{"id":"p:fs-readFile/large-file/uv-fs-done","title":"uv__fs_done","desc":"Runs on the loop thread after the pool thread has finished the read.","thread":"main","locs":[{"path":"deps/uv/src/unix/fs.c","start":1751,"end":1763,"sym":"uv__fs_done","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/fs.c#L1751-L1763"},{"path":"deps/uv/src/win/fs.c","start":3214,"end":3226,"sym":"uv__fs_done","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/fs.c#L3214-L3226"}]},{"id":"p:fs-readFile/large-file/after-integer","title":"AfterInteger","desc":"Resolves the request with the number of bytes read.","thread":"main","locs":[{"path":"src/node_file.cc","start":869,"end":880,"sym":"node::fs::AfterInteger","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node_file.cc#L869-L880"}]},{"id":"p:fs-readFile/large-file/req-resolve","title":"FSReqCallback::Resolve","desc":"Calls req.oncomplete in JavaScript through MakeCallback.","thread":"main","locs":[{"path":"src/node_file.cc","start":749,"end":754,"sym":"node::fs::FSReqCallback::Resolve","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node_file.cc#L749-L754"}],"box":"o:fs.reqCallback"},{"id":"p:fs-readFile/large-file/js-after-read","title":"readFileAfterRead","desc":"Reads the next chunk, or closes the file and calls your callback.","thread":"main","locs":[{"path":"lib/internal/fs/read/context.js","start":28,"end":69,"sym":"readFileAfterRead","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/fs/read/context.js#L28-L69"}]}]}]},{"id":"p:next-tick","title":"process.nextTick(callback): run as soon as the current JavaScript stack unwinds","desc":"nextTick callbacks wait in a JavaScript queue. They run when C++ leaves a callback (the InternalCallbackScope closes), between two timers or two immediates, and after your main script - before any further I/O, timer or immediate, and before promise reactions of the same round.","certainty":"model","steps":[{"id":"p:next-tick/next-tick","title":"process.nextTick()","desc":"Validates the callback, marks that a tick is scheduled and pushes a TickObject onto the queue.","thread":"main","locs":[{"path":"lib/internal/process/task_queues.js","start":126,"end":152,"sym":"nextTick","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/process/task_queues.js#L126-L152"}],"box":"o:tick.nextTick"},{"id":"p:next-tick/scope-close","title":"The current callback returns","desc":"InternalCallbackScope::Close sees that a tick is scheduled and calls the tick callback.","thread":"main","locs":[{"path":"src/api/callback.cc","start":138,"end":213,"sym":"node::InternalCallbackScope::Close","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/api/callback.cc#L138-L213"}],"box":"o:cb.ScopeClose"},{"id":"p:next-tick/tick-drain","title":"processTicksAndRejections","desc":"Runs every queued tick callback (yours) and, after the queue is empty, the microtasks; repeats until both are empty.","thread":"main","locs":[{"path":"lib/internal/process/task_queues.js","start":72,"end":109,"sym":"processTicksAndRejections","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/process/task_queues.js#L72-L109"}],"box":"o:tick.drain"},{"id":"p:next-tick/run-microtasks","title":"runMicrotasks()","desc":"The binding asks V8 for a microtask checkpoint, so promise reactions run after the ticks.","thread":"main","locs":[{"path":"src/node_task_queue.cc","start":140,"end":143,"sym":"node::task_queue::RunMicrotasks","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node_task_queue.cc#L140-L143"}],"box":"o:microtask.binding"}],"branches":[{"id":"p:next-tick/between","title":"Between timers and immediates","desc":"When several timers or immediates are due in one phase, nextTicks and microtasks run between each two of them.","steps":[{"id":"p:next-tick/between/run-next-ticks","title":"runNextTicks","desc":"Called by listOnTimeout and processImmediate before the second and later callbacks.","thread":"main","locs":[{"path":"lib/internal/process/task_queues.js","start":63,"end":70,"sym":"runNextTicks","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/process/task_queues.js#L63-L70"}],"box":"o:tick.runNextTicks"}]},{"id":"p:next-tick/main-script","title":"After your main script","desc":"Your main module runs inside a callback scope too, so ticks queued by it run before the event loop starts.","steps":[{"id":"p:next-tick/main-script/start-execution","title":"StartExecution","desc":"Opens an InternalCallbackScope around the code that runs your entry point.","thread":"main","locs":[{"path":"src/node.cc","start":289,"end":414,"sym":"node::StartExecution","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node.cc#L289-L414"}]}]},{"id":"p:next-tick/setup","title":"Set up once at startup","desc":"Bootstrap registers processTicksAndRejections as the tick callback C++ calls.","steps":[{"id":"p:next-tick/setup/set-tick-callback","title":"SetTickCallback","desc":"Stores processTicksAndRejections in the Environment as the tick callback.","thread":"main","locs":[{"path":"src/node_task_queue.cc","start":145,"end":149,"sym":"node::task_queue::SetTickCallback","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node_task_queue.cc#L145-L149"}]}]}]},{"id":"p:promise-then","title":"promise.then(callback): a reaction job on V8's microtask queue","desc":".then() never calls the handler directly. When the promise is (or becomes) settled, V8 puts a reaction job on the microtask queue. Node drains that queue when a callback from C++ returns (InternalCallbackScope::Close) and from processTicksAndRejections after the nextTick queue.","certainty":"model","steps":[{"id":"p:promise-then/then","title":"Promise.prototype.then","desc":"The Torque builtin creates the derived promise and calls PerformPromiseThen.","thread":"main","locs":[{"path":"deps/v8/src/builtins/promise-then.tq","start":26,"end":86,"sym":"promise::PromisePrototypeThen","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/builtins/promise-then.tq#L26-L86"}],"box":"o:v8.promiseThen"},{"id":"p:promise-then/perform-then","title":"PerformPromiseThen","desc":"A pending promise stores the reaction; a settled one gets a reaction job queued at once.","thread":"main","locs":[{"path":"deps/v8/src/builtins/promise-abstract-operations.tq","start":452,"end":490,"sym":"promise::PerformPromiseThenImpl","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/builtins/promise-abstract-operations.tq#L452-L490"}],"box":"o:v8.performPromiseThen"},{"id":"p:promise-then/enqueue","title":"EnqueueMicrotask","desc":"Appends the reaction job to the context's microtask queue.","thread":"main","locs":[{"path":"deps/v8/src/builtins/builtins-microtask-queue-gen.cc","start":581,"end":628,"sym":"v8::internal::Builtins::Generate_EnqueueMicrotask","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/builtins/builtins-microtask-queue-gen.cc#L581-L628"}],"box":"o:v8.enqueueMicrotask"},{"id":"p:promise-then/scope-close","title":"The current callback returns","desc":"InternalCallbackScope::Close asks V8 for a microtask checkpoint when no nextTick is queued.","thread":"main","locs":[{"path":"src/api/callback.cc","start":138,"end":213,"sym":"node::InternalCallbackScope::Close","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/api/callback.cc#L138-L213"}],"box":"o:cb.ScopeClose"},{"id":"p:promise-then/checkpoint","title":"MicrotaskQueue::PerformCheckpoint","desc":"Runs the queue unless microtasks are already running.","thread":"main","locs":[{"path":"deps/v8/src/execution/microtask-queue.h","start":46,"end":49,"sym":"v8::internal::MicrotaskQueue::PerformCheckpoint","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/execution/microtask-queue.h#L46-L49"}],"box":"o:microtask.checkpoint"},{"id":"p:promise-then/run-microtasks","title":"MicrotaskQueue::RunMicrotasks","desc":"Enters V8's RunMicrotasks builtin to run every queued job.","thread":"main","locs":[{"path":"deps/v8/src/execution/microtask-queue.cc","start":153,"end":215,"sym":"v8::internal::MicrotaskQueue::RunMicrotasks","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/execution/microtask-queue.cc#L153-L215"}],"box":"o:microtask.run"},{"id":"p:promise-then/run-builtin","title":"RunMicrotasks builtin","desc":"Takes the jobs off the queue one at a time, including jobs queued while it runs.","thread":"main","locs":[{"path":"deps/v8/src/builtins/builtins-microtask-queue-gen.cc","start":630,"end":674,"sym":"v8::internal::Builtins::Generate_RunMicrotasks","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/builtins/builtins-microtask-queue-gen.cc#L630-L674"}],"box":"o:v8.runMicrotasksBuiltin"},{"id":"p:promise-then/run-single","title":"RunSingleMicrotask","desc":"Sees a promise fulfil reaction job and calls the reaction-job builtin.","thread":"main","locs":[{"path":"deps/v8/src/builtins/builtins-microtask-queue-gen.cc","start":145,"end":413,"sym":"v8::internal::MicrotaskQueueBuiltinsAssembler::RunSingleMicrotask","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/builtins/builtins-microtask-queue-gen.cc#L145-L413"}],"box":"o:v8.runSingleMicrotask"},{"id":"p:promise-then/fulfill-job","title":"PromiseFulfillReactionJob","desc":"The builtin for a fulfilled promise's reaction; passes the value and the fulfil handler on.","thread":"main","locs":[{"path":"deps/v8/src/builtins/promise-reaction-job.tq","start":105,"end":110,"sym":"promise::PromiseFulfillReactionJob","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/builtins/promise-reaction-job.tq#L105-L110"}]},{"id":"p:promise-then/reaction-job","title":"PromiseReactionJob","desc":"Calls your handler with the value and settles the derived promise with what it returns.","thread":"main","locs":[{"path":"deps/v8/src/builtins/promise-reaction-job.tq","start":70,"end":103,"sym":"promise::PromiseReactionJob","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/builtins/promise-reaction-job.tq#L70-L103"}],"box":"o:v8.promiseReactionJob"}],"branches":[{"id":"p:promise-then/settle-later","title":"The promise settles later","desc":"If the promise was still pending at .then(), its reactions are queued at the moment it is fulfilled.","steps":[{"id":"p:promise-then/settle-later/fulfill","title":"FulfillPromise","desc":"Records the value and the new state, then triggers the stored reactions.","thread":"main","locs":[{"path":"deps/v8/src/builtins/promise-abstract-operations.tq","start":192,"end":214,"sym":"promise::FulfillPromise","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/builtins/promise-abstract-operations.tq#L192-L214"}]},{"id":"p:promise-then/settle-later/trigger","title":"TriggerPromiseReactions","desc":"Turns every stored reaction into a job.","thread":"main","locs":[{"path":"deps/v8/src/builtins/promise-abstract-operations.tq","start":150,"end":189,"sym":"promise::TriggerPromiseReactions","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/builtins/promise-abstract-operations.tq#L150-L189"}],"box":"o:v8.triggerReactions"},{"id":"p:promise-then/settle-later/morph","title":"MorphAndEnqueuePromiseReaction","desc":"Rewrites the reaction into a reaction job and calls EnqueueMicrotask.","thread":"main","locs":[{"path":"deps/v8/src/builtins/promise-abstract-operations.tq","start":85,"end":147,"sym":"promise::MorphAndEnqueuePromiseReaction","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/v8/src/builtins/promise-abstract-operations.tq#L85-L147"}]}]},{"id":"p:promise-then/after-ticks","title":"Drained after nextTicks","desc":"When nextTicks are queued, processTicksAndRejections runs them first and then calls runMicrotasks().","steps":[{"id":"p:promise-then/after-ticks/tick-drain","title":"processTicksAndRejections","desc":"After each round of tick callbacks it calls runMicrotasks().","thread":"main","locs":[{"path":"lib/internal/process/task_queues.js","start":72,"end":109,"sym":"processTicksAndRejections","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/process/task_queues.js#L72-L109"}],"box":"o:tick.drain"},{"id":"p:promise-then/after-ticks/binding","title":"runMicrotasks()","desc":"The binding asks V8 for the same microtask checkpoint.","thread":"main","locs":[{"path":"src/node_task_queue.cc","start":140,"end":143,"sym":"node::task_queue::RunMicrotasks","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/node_task_queue.cc#L140-L143"}],"box":"o:microtask.binding"}]}]},{"id":"p:set-immediate","title":"setImmediate(callback): the check phase","desc":"Immediates wait in a JavaScript queue. While at least one ref'ed immediate is waiting, C++ keeps an idle handle running so the poll phase does not block; the check phase then calls processImmediate, which runs the whole queue.","certainty":"model","steps":[{"id":"p:set-immediate/set-immediate","title":"setImmediate()","desc":"Validates the callback and creates an Immediate.","thread":"main","locs":[{"path":"lib/timers.js","start":215,"end":218,"sym":"setImmediate","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/timers.js#L215-L218"}],"box":"o:immediate.setImmediate"},{"id":"p:set-immediate/immediate-ctor","title":"new Immediate(...)","desc":"Registers it with async_hooks as type Immediate, refs it and appends it to the immediate queue.","thread":"main","locs":[{"path":"lib/internal/timers.js","start":747,"end":761,"sym":"Immediate.prototype.constructor","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/timers.js#L747-L761"}]},{"id":"p:set-immediate/toggle-ref-binding","title":"binding.toggleImmediateRef(true)","desc":"The first ref'ed immediate asks C++ to keep the loop from blocking.","thread":"main","locs":[{"path":"src/timers.cc","start":91,"end":93,"sym":"node::timers::BindingData::ToggleImmediateRefImpl","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/timers.cc#L91-L93"}]},{"id":"p:set-immediate/toggle-ref","title":"Environment::ToggleImmediateRef","desc":"Starts an idle handle that does nothing except keep the poll phase from waiting.","thread":"main","locs":[{"path":"src/env.cc","start":1837,"end":1846,"sym":"node::Environment::ToggleImmediateRef","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/env.cc#L1837-L1846"}],"box":"o:immediate.toggleRef"},{"id":"p:set-immediate/poll-no-wait","title":"Poll does not block","desc":"With an idle handle active the poll timeout is 0, so the loop moves on to the check phase right away.","thread":"main","locs":[{"path":"deps/uv/src/unix/core.c","start":401,"end":411,"sym":"uv__backend_timeout","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/core.c#L401-L411"},{"path":"deps/uv/src/win/core.c","start":414,"end":423,"sym":"uv_backend_timeout","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L414-L423"}]},{"id":"p:set-immediate/check-phase","title":"Check phase","desc":"libuv runs the check handles; Node's check handle was started at startup with CheckImmediate as its callback.","thread":"main","locs":[{"path":"deps/uv/src/unix/loop-watcher.c","start":67,"end":67,"sym":"uv__run_check","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/loop-watcher.c#L67"},{"path":"deps/uv/src/win/loop-watcher.c","start":121,"end":121,"sym":"uv__check_invoke","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/loop-watcher.c#L121"}],"box":"o:phase.check"},{"id":"p:set-immediate/check-immediate","title":"Environment::CheckImmediate","desc":"If immediates are waiting, calls processImmediate in JavaScript through MakeCallback.","thread":"main","locs":[{"path":"src/env.cc","start":1809,"end":1835,"sym":"node::Environment::CheckImmediate","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/env.cc#L1809-L1835"}],"box":"o:immediate.check"},{"id":"p:set-immediate/make-callback","title":"MakeCallback","desc":"The public MakeCallback for a function calls InternalMakeCallback, which opens a callback scope.","thread":"main","locs":[{"path":"src/api/callback.cc","start":321,"end":329,"sym":"node::MakeCallback","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/api/callback.cc#L321-L329"}]},{"id":"p:set-immediate/process-immediate","title":"processImmediate","desc":"Runs every immediate that was queued before it started - your callback - with nextTicks and microtasks between two of them.","thread":"main","locs":[{"path":"lib/internal/timers.js","start":525,"end":600,"sym":"getTimerCallbacks/processImmediate","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/timers.js#L525-L600"}],"box":"o:immediate.process"},{"id":"p:set-immediate/scope-close","title":"InternalCallbackScope::Close","desc":"After processImmediate returns, the scope drains the nextTicks and microtasks queued by the last immediate.","thread":"main","locs":[{"path":"src/api/callback.cc","start":138,"end":213,"sym":"node::InternalCallbackScope::Close","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/api/callback.cc#L138-L213"}],"box":"o:cb.ScopeClose"},{"id":"p:set-immediate/unref","title":"Idle handle stopped","desc":"When no ref'ed immediate is left, CheckImmediate stops the idle handle so poll may block again.","thread":"main","locs":[{"path":"src/env.cc","start":1837,"end":1846,"sym":"node::Environment::ToggleImmediateRef","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/env.cc#L1837-L1846"}],"box":"o:immediate.toggleRef"}],"branches":[{"id":"p:set-immediate/setup","title":"Set up once at startup","desc":"The check handle and the idle handle are created and the check handle is started when the Environment starts libuv.","steps":[{"id":"p:set-immediate/setup/initialize-libuv","title":"Environment::InitializeLibuv","desc":"Initializes the timer, check and idle handles and starts the check handle with CheckImmediate.","thread":"main","locs":[{"path":"src/env.cc","start":1299,"end":1345,"sym":"node::Environment::InitializeLibuv","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/env.cc#L1299-L1345"}]}]}]},{"id":"p:set-timeout","title":"setTimeout(callback, ms): from the call to the callback","desc":"JavaScript keeps timers in one list per duration, ordered in a priority queue by expiry. Only the earliest expiry is given to libuv, as one libuv timer owned by the Environment. The loop caches its clock once per turn; a timer is due when its timeout is not later than that cached time, so a busy callback can make a timer run late but never early.","certainty":"model","steps":[{"id":"p:set-timeout/set-timeout","title":"setTimeout()","desc":"Validates the callback, creates a Timeout (duration clamped to at least 1 ms) and inserts it.","thread":"main","locs":[{"path":"lib/timers.js","start":123,"end":128,"sym":"setTimeout","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/timers.js#L123-L128"}],"box":"o:timers.setTimeout"},{"id":"p:set-timeout/timeout-ctor","title":"new Timeout(...)","desc":"Records the callback and duration and registers the timer with async_hooks as type Timeout.","thread":"main","locs":[{"path":"lib/internal/timers.js","start":218,"end":260,"sym":"Timeout.prototype.constructor","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/timers.js#L218-L260"}]},{"id":"p:set-timeout/insert","title":"insert()","desc":"Appends the timer to the list for its duration, creating the list (and queueing it by expiry) if needed.","thread":"main","locs":[{"path":"lib/internal/timers.js","start":426,"end":447,"sym":"insert","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/timers.js#L426-L447"}],"box":"o:timers.insert"},{"id":"p:set-timeout/schedule-timer-binding","title":"binding.scheduleTimer(ms)","desc":"Only when the new list expires before every other list, JavaScript asks C++ to move the libuv timer earlier.","thread":"main","locs":[{"path":"src/timers.cc","start":61,"end":63,"sym":"node::timers::BindingData::ScheduleTimerImpl","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/timers.cc#L61-L63"}]},{"id":"p:set-timeout/env-schedule-timer","title":"Environment::ScheduleTimer","desc":"Starts the Environment's single libuv timer with RunTimers as its callback.","thread":"main","locs":[{"path":"src/env.cc","start":1733,"end":1736,"sym":"node::Environment::ScheduleTimer","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/env.cc#L1733-L1736"}],"box":"o:timers.scheduleTimer"},{"id":"p:set-timeout/uv-timer-start","title":"uv_timer_start","desc":"Sets the timer's timeout to the loop's cached time plus the duration and puts it in libuv's timer heap.","thread":"main","locs":[{"path":"deps/uv/src/timer.c","start":67,"end":94,"sym":"uv_timer_start","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/timer.c#L67-L94"}]},{"id":"p:set-timeout/poll-timeout","title":"How long poll may wait","desc":"Before polling, the loop asks for the time until the earliest timer, so the poll phase wakes up in time.","thread":"main","locs":[{"path":"deps/uv/src/unix/core.c","start":401,"end":411,"sym":"uv__backend_timeout","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/core.c#L401-L411"},{"path":"deps/uv/src/win/core.c","start":414,"end":423,"sym":"uv_backend_timeout","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L414-L423"}]},{"id":"p:set-timeout/next-timeout","title":"uv__next_timeout","desc":"The time from the loop's cached time to the earliest timer in libuv's heap, or 0 if one is already due.","thread":"main","locs":[{"path":"deps/uv/src/timer.c","start":143,"end":161,"sym":"uv__next_timeout","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/timer.c#L143-L161"}]},{"id":"p:set-timeout/update-time","title":"The loop clock is updated","desc":"Near the end of the turn uv_run reads the clock once and caches it as the loop time.","thread":"main","locs":[{"path":"deps/uv/src/unix/internal.h","start":467,"end":471,"sym":"uv__update_time","os":"unix","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/unix/internal.h#L467-L471"},{"path":"deps/uv/src/win/core.c","start":325,"end":329,"sym":"uv_update_time","os":"win","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/win/core.c#L325-L329"}],"box":"o:loop.updateTime"},{"id":"p:set-timeout/run-timers","title":"Timers phase - uv__run_timers","desc":"Every libuv timer whose timeout is not later than the loop time is due; Node's timer is one of them.","thread":"main","locs":[{"path":"deps/uv/src/timer.c","start":164,"end":194,"sym":"uv__run_timers","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/deps/uv/src/timer.c#L164-L194"}],"box":"o:phase.timers"},{"id":"p:set-timeout/env-run-timers","title":"Environment::RunTimers","desc":"Opens a callback scope and calls processTimers in JavaScript with the current loop time.","thread":"main","locs":[{"path":"src/env.cc","start":1748,"end":1806,"sym":"node::Environment::RunTimers","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/env.cc#L1748-L1806"}],"box":"o:timers.runTimers"},{"id":"p:set-timeout/process-timers","title":"processTimers","desc":"Takes the timer lists whose expiry has passed, earliest first, and runs nextTicks between two lists.","thread":"main","locs":[{"path":"lib/internal/timers.js","start":603,"end":621,"sym":"getTimerCallbacks/processTimers","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/timers.js#L603-L621"}],"box":"o:timers.processTimers"},{"id":"p:set-timeout/list-on-timeout","title":"listOnTimeout","desc":"Runs each timer in the list that is old enough - your callback - with nextTicks and microtasks between two timers.","thread":"main","locs":[{"path":"lib/internal/timers.js","start":623,"end":738,"sym":"getTimerCallbacks/listOnTimeout","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/lib/internal/timers.js#L623-L738"}],"box":"o:timers.listOnTimeout"},{"id":"p:set-timeout/reschedule","title":"Back in RunTimers","desc":"processTimers returns the next expiry, and RunTimers restarts the libuv timer for it (or unrefs it when none is left).","thread":"main","locs":[{"path":"src/env.cc","start":1748,"end":1806,"sym":"node::Environment::RunTimers","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/env.cc#L1748-L1806"}],"box":"o:timers.runTimers"},{"id":"p:set-timeout/scope-close","title":"InternalCallbackScope::Close","desc":"When RunTimers returns, its callback scope drains the nextTicks and microtasks queued by the last timer.","thread":"main","locs":[{"path":"src/api/callback.cc","start":138,"end":213,"sym":"node::InternalCallbackScope::Close","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/api/callback.cc#L138-L213"}],"box":"o:cb.ScopeClose"}],"branches":[{"id":"p:set-timeout/startup","title":"Set up once at startup","desc":"Bootstrap hands processTimers and processImmediate to C++, which keeps them for RunTimers and CheckImmediate.","steps":[{"id":"p:set-timeout/startup/setup-timers","title":"BindingData::SetupTimers","desc":"Stores the JavaScript functions processImmediate and processTimers in the Environment.","thread":"main","locs":[{"path":"src/timers.cc","start":24,"end":31,"sym":"node::timers::BindingData::SetupTimers","url":"https://github.com/nodejs/node/blob/e9c277643b0249c50f6e6de5413be8a88ea11b6a/src/timers.cc#L24-L31"}]}]}]}],"chunks":[{"id":"lib.fs.0","group":"o:lib.fs","url":"chunks/lib.fs.0.json","r":[100,3530,9800,6370],"rows":544,"bytes":71219},{"id":"lib.process.0","group":"o:lib.process","url":"chunks/lib.process.0.json","r":[100,3530,9800,6370],"rows":186,"bytes":30585},{"id":"lib.timers.0","group":"o:lib.timers","url":"chunks/lib.timers.0.json","r":[100,3530,9800,6370],"rows":60,"bytes":7803},{"id":"lib.events.0","group":"o:lib.events","url":"chunks/lib.events.0.json","r":[100,800,9800,9100],"rows":323,"bytes":49969},{"id":"lib.streams.0","group":"o:lib.streams","url":"chunks/lib.streams.0.json","r":[100,3530,9800,6370],"rows":1232,"bytes":224788},{"id":"lib.net.0","group":"o:lib.net","url":"chunks/lib.net.0.json","r":[100,3530,9800,6370],"rows":1500,"bytes":223059},{"id":"lib.net.1","group":"o:lib.net","url":"chunks/lib.net.1.json","r":[8911,8907,989,993],"rows":18,"bytes":2100},{"id":"lib.crypto.0","group":"o:lib.crypto","url":"chunks/lib.crypto.0.json","r":[100,3530,9800,6370],"rows":534,"bytes":75166},{"id":"lib.zlib.0","group":"o:lib.zlib","url":"chunks/lib.zlib.0.json","r":[100,3530,9800,6370],"rows":54,"bytes":6052},{"id":"lib.modules.0","group":"o:lib.modules","url":"chunks/lib.modules.0.json","r":[100,800,9800,9100],"rows":468,"bytes":78662},{"id":"lib.bootstrap.0","group":"o:lib.bootstrap","url":"chunks/lib.bootstrap.0.json","r":[100,800,9800,9100],"rows":173,"bytes":29330},{"id":"lib.workers.0","group":"o:lib.workers","url":"chunks/lib.workers.0.json","r":[100,800,9800,9100],"rows":248,"bytes":37118},{"id":"lib.devtools.0","group":"o:lib.devtools","url":"chunks/lib.devtools.0.json","r":[100,800,9800,9100],"rows":1165,"bytes":200635},{"id":"lib.core.0","group":"o:lib.core","url":"chunks/lib.core.0.json","r":[100,800,9800,9100],"rows":891,"bytes":116158},{"id":"lib.platform.0","group":"o:lib.platform","url":"chunks/lib.platform.0.json","r":[100,800,9800,9100],"rows":1119,"bytes":184517},{"id":"lib.rest.0","group":"o:lib.rest","url":"chunks/lib.rest.0.json","r":[100,800,9800,9100],"rows":444,"bytes":64785},{"id":"src.fs.0","group":"o:src.fs","url":"chunks/src.fs.0.json","r":[100,3530,9800,6370],"rows":283,"bytes":42949},{"id":"src.callbacks.0","group":"o:src.callbacks","url":"chunks/src.callbacks.0.json","r":[100,3530,9800,6370],"rows":126,"bytes":20617},{"id":"src.loop.0","group":"o:src.loop","url":"chunks/src.loop.0.json","r":[100,3530,9800,6370],"rows":653,"bytes":111118},{"id":"src.inspector.0","group":"o:src.inspector","url":"chunks/src.inspector.0.json","r":[100,3530,9800,6370],"rows":682,"bytes":130569},{"id":"src.crypto.0","group":"o:src.crypto","url":"chunks/src.crypto.0.json","r":[100,3530,9800,6370],"rows":1046,"bytes":187703},{"id":"src.zlib.0","group":"o:src.zlib","url":"chunks/src.zlib.0.json","r":[100,3530,9800,6370],"rows":103,"bytes":15275},{"id":"src.net.0","group":"o:src.net","url":"chunks/src.net.0.json","r":[100,3530,3744,6370],"rows":778,"bytes":138490},{"id":"src.net.1","group":"o:src.net","url":"chunks/src.net.1.json","r":[3843,3530,6057,6370],"rows":1208,"bytes":220375},{"id":"src.process.0","group":"o:src.process","url":"chunks/src.process.0.json","r":[100,3530,9800,6370],"rows":432,"bytes":68322},{"id":"src.modules.0","group":"o:src.modules","url":"chunks/src.modules.0.json","r":[100,800,9800,9100],"rows":465,"bytes":80566},{"id":"src.napi.0","group":"o:src.napi","url":"chunks/src.napi.0.json","r":[100,800,9800,9100],"rows":338,"bytes":49039},{"id":"src.diag.0","group":"o:src.diag","url":"chunks/src.diag.0.json","r":[100,800,9800,9100],"rows":787,"bytes":134717},{"id":"src.support.0","group":"o:src.support","url":"chunks/src.support.0.json","r":[100,800,9800,9100],"rows":859,"bytes":147362},{"id":"src.rest.0","group":"o:src.rest","url":"chunks/src.rest.0.json","r":[100,800,9800,9100],"rows":1196,"bytes":201292},{"id":"v8.root.0","group":"o:v8.root","url":"chunks/v8.root.0.json","r":[100,800,9800,9100],"rows":3,"bytes":373},{"id":"v8.api.0","group":"o:v8.api","url":"chunks/v8.api.0.json","r":[100,800,9800,9100],"rows":10,"bytes":1043},{"id":"v8.asmjs.0","group":"o:v8.asmjs","url":"chunks/v8.asmjs.0.json","r":[100,800,9800,9100],"rows":11,"bytes":1179},{"id":"v8.ast.0","group":"o:v8.ast","url":"chunks/v8.ast.0.json","r":[100,800,9800,9100],"rows":20,"bytes":2153},{"id":"v8.base.0","group":"o:v8.base","url":"chunks/v8.base.0.json","r":[100,800,9800,9100],"rows":196,"bytes":23192},{"id":"v8.baseline.0","group":"o:v8.baseline","url":"chunks/v8.baseline.0.json","r":[100,800,9800,9100],"rows":39,"bytes":5451},{"id":"v8.bigint.0","group":"o:v8.bigint","url":"chunks/v8.bigint.0.json","r":[100,800,9800,9100],"rows":22,"bytes":2354},{"id":"v8.builtins.0","group":"o:v8.builtins","url":"chunks/v8.builtins.0.json","r":[100,3530,9800,6370],"rows":301,"bytes":36087},{"id":"v8.codegen.0","group":"o:v8.codegen","url":"chunks/v8.codegen.0.json","r":[100,800,9800,9100],"rows":205,"bytes":26655},{"id":"v8.codegen.riscv.0","group":"o:v8.codegen.riscv","url":"chunks/v8.codegen.riscv.0.json","r":[100,800,9800,9100],"rows":55,"bytes":7248},{"id":"v8.common.0","group":"o:v8.common","url":"chunks/v8.common.0.json","r":[100,800,9800,9100],"rows":20,"bytes":2266},{"id":"v8.compiler.0","group":"o:v8.compiler","url":"chunks/v8.compiler.0.json","r":[100,800,9800,9100],"rows":245,"bytes":28535},{"id":"v8.compiler-dispatcher.0","group":"o:v8.compiler-dispatcher","url":"chunks/v8.compiler-dispatcher.0.json","r":[100,800,9800,9100],"rows":6,"bytes":1030},{"id":"v8.compiler.backend.0","group":"o:v8.compiler.backend","url":"chunks/v8.compiler.backend.0.json","r":[100,800,9800,9100],"rows":89,"bytes":14554},{"id":"v8.compiler.turboshaft.0","group":"o:v8.compiler.turboshaft","url":"chunks/v8.compiler.turboshaft.0.json","r":[100,800,9800,9100],"rows":181,"bytes":26712},{"id":"v8.d8.0","group":"o:v8.d8","url":"chunks/v8.d8.0.json","r":[100,800,9800,9100],"rows":15,"bytes":1521},{"id":"v8.date.0","group":"o:v8.date","url":"chunks/v8.date.0.json","r":[100,800,9800,9100],"rows":7,"bytes":770},{"id":"v8.debug.0","group":"o:v8.debug","url":"chunks/v8.debug.0.json","r":[100,800,9800,9100],"rows":48,"bytes":6021},{"id":"v8.deoptimizer.0","group":"o:v8.deoptimizer","url":"chunks/v8.deoptimizer.0.json","r":[100,800,9800,9100],"rows":35,"bytes":4617},{"id":"v8.diagnostics.0","group":"o:v8.diagnostics","url":"chunks/v8.diagnostics.0.json","r":[100,800,9800,9100],"rows":67,"bytes":8817},{"id":"v8.dumpling.0","group":"o:v8.dumpling","url":"chunks/v8.dumpling.0.json","r":[100,800,9800,9100],"rows":5,"bytes":684},{"id":"v8.execution.0","group":"o:v8.execution","url":"chunks/v8.execution.0.json","r":[100,3530,9800,6370],"rows":105,"bytes":13487},{"id":"v8.extensions.0","group":"o:v8.extensions","url":"chunks/v8.extensions.0.json","r":[100,800,9800,9100],"rows":15,"bytes":2128},{"id":"v8.flags.0","group":"o:v8.flags","url":"chunks/v8.flags.0.json","r":[100,800,9800,9100],"rows":8,"bytes":870},{"id":"v8.fuzzilli.0","group":"o:v8.fuzzilli","url":"chunks/v8.fuzzilli.0.json","r":[100,800,9800,9100],"rows":5,"bytes":609},{"id":"v8.handles.0","group":"o:v8.handles","url":"chunks/v8.handles.0.json","r":[100,800,9800,9100],"rows":20,"bytes":2353},{"id":"v8.heap.0","group":"o:v8.heap","url":"chunks/v8.heap.0.json","r":[100,800,9800,9100],"rows":251,"bytes":28264},{"id":"v8.heap.cppgc.0","group":"o:v8.heap.cppgc","url":"chunks/v8.heap.cppgc.0.json","r":[100,800,9800,9100],"rows":95,"bytes":10795},{"id":"v8.ic.0","group":"o:v8.ic","url":"chunks/v8.ic.0.json","r":[100,800,9800,9100],"rows":23,"bytes":2427},{"id":"v8.init.0","group":"o:v8.init","url":"chunks/v8.init.0.json","r":[100,800,9800,9100],"rows":16,"bytes":1707},{"id":"v8.inspector.0","group":"o:v8.inspector","url":"chunks/v8.inspector.0.json","r":[100,800,9800,9100],"rows":65,"bytes":7774},{"id":"v8.interpreter.0","group":"o:v8.interpreter","url":"chunks/v8.interpreter.0.json","r":[100,800,9800,9100],"rows":55,"bytes":7257},{"id":"v8.json.0","group":"o:v8.json","url":"chunks/v8.json.0.json","r":[100,800,9800,9100],"rows":6,"bytes":718},{"id":"v8.libplatform.0","group":"o:v8.libplatform","url":"chunks/v8.libplatform.0.json","r":[100,800,9800,9100],"rows":35,"bytes":4878},{"id":"v8.libsampler.0","group":"o:v8.libsampler","url":"chunks/v8.libsampler.0.json","r":[100,800,9800,9100],"rows":5,"bytes":636},{"id":"v8.logging.0","group":"o:v8.logging","url":"chunks/v8.logging.0.json","r":[100,800,9800,9100],"rows":20,"bytes":2199},{"id":"v8.maglev.0","group":"o:v8.maglev","url":"chunks/v8.maglev.0.json","r":[100,800,9800,9100],"rows":94,"bytes":11781},{"id":"v8.numbers.0","group":"o:v8.numbers","url":"chunks/v8.numbers.0.json","r":[100,800,9800,9100],"rows":14,"bytes":1566},{"id":"v8.objects.0","group":"o:v8.objects","url":"chunks/v8.objects.0.json","r":[100,800,9800,9100],"rows":438,"bytes":47881},{"id":"v8.parsing.0","group":"o:v8.parsing","url":"chunks/v8.parsing.0.json","r":[100,800,9800,9100],"rows":35,"bytes":3887},{"id":"v8.profiler.0","group":"o:v8.profiler","url":"chunks/v8.profiler.0.json","r":[100,800,9800,9100],"rows":35,"bytes":4181},{"id":"v8.regexp.0","group":"o:v8.regexp","url":"chunks/v8.regexp.0.json","r":[100,800,9800,9100],"rows":91,"bytes":11684},{"id":"v8.roots.0","group":"o:v8.roots","url":"chunks/v8.roots.0.json","r":[100,800,9800,9100],"rows":10,"bytes":1181},{"id":"v8.runtime.0","group":"o:v8.runtime","url":"chunks/v8.runtime.0.json","r":[100,800,9800,9100],"rows":37,"bytes":4213},{"id":"v8.sandbox.0","group":"o:v8.sandbox","url":"chunks/v8.sandbox.0.json","r":[100,800,9800,9100],"rows":56,"bytes":6623},{"id":"v8.snapshot.0","group":"o:v8.snapshot","url":"chunks/v8.snapshot.0.json","r":[100,800,9800,9100],"rows":72,"bytes":9682},{"id":"v8.strings.0","group":"o:v8.strings","url":"chunks/v8.strings.0.json","r":[100,800,9800,9100],"rows":25,"bytes":2766},{"id":"v8.tasks.0","group":"o:v8.tasks","url":"chunks/v8.tasks.0.json","r":[100,800,9800,9100],"rows":7,"bytes":856},{"id":"v8.torque.0","group":"o:v8.torque","url":"chunks/v8.torque.0.json","r":[100,800,9800,9100],"rows":68,"bytes":7469},{"id":"v8.tracing.0","group":"o:v8.tracing","url":"chunks/v8.tracing.0.json","r":[100,800,9800,9100],"rows":21,"bytes":2426},{"id":"v8.trap-handler.0","group":"o:v8.trap-handler","url":"chunks/v8.trap-handler.0.json","r":[100,800,9800,9100],"rows":16,"bytes":2125},{"id":"v8.utils.0","group":"o:v8.utils","url":"chunks/v8.utils.0.json","r":[100,800,9800,9100],"rows":33,"bytes":3332},{"id":"v8.wasm.0","group":"o:v8.wasm","url":"chunks/v8.wasm.0.json","r":[100,800,9800,9100],"rows":180,"bytes":21605},{"id":"v8.zone.0","group":"o:v8.zone","url":"chunks/v8.zone.0.json","r":[100,800,9800,9100],"rows":18,"bytes":1916},{"id":"uv.loop.0","group":"o:uv.loop","url":"chunks/uv.loop.0.json","r":[100,3530,9800,6370],"rows":260,"bytes":32270},{"id":"uv.threadpool.0","group":"o:uv.threadpool","url":"chunks/uv.threadpool.0.json","r":[100,3530,9800,6370],"rows":145,"bytes":21062},{"id":"uv.fs.0","group":"o:uv.fs","url":"chunks/uv.fs.0.json","r":[100,800,9800,9100],"rows":236,"bytes":29320},{"id":"uv.net.0","group":"o:uv.net","url":"chunks/uv.net.0.json","r":[100,3530,9800,6370],"rows":370,"bytes":47976},{"id":"uv.backends.0","group":"o:uv.backends","url":"chunks/uv.backends.0.json","r":[100,800,9800,9100],"rows":335,"bytes":44290},{"id":"uv.api.0","group":"o:uv.api","url":"chunks/uv.api.0.json","r":[100,800,9800,9100],"rows":16,"bytes":1783},{"id":"uv.rest.0","group":"o:uv.rest","url":"chunks/uv.rest.0.json","r":[100,800,9800,9100],"rows":332,"bytes":44283}],"files":"files.json","search":"search.json","edges":"edges.json","aliases":{}}