facebookarchive/prepack

Collect statistics that help understand Prepack effects

Open

#934 建立於 2017年8月26日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (520 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (14,268 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Prepack runs the global code, and we could collect some runtime information to help assess what Prepack does:

  • How many objects get created when running the interpreter? (And how many survive and get serialized?)
  • How many object properties get updated? (And how many are serialized?)
  • How many times does each type of AST node get evaluated? (Pretty much all of those computations, except for some literals, object allocations, property updates, will get eliminated by Prepack.)

When forking and merging control-flow, compute the maximum value for each explored case.

貢獻者指南