0toz
V2EX  ›  问与答

怎么排查网页有哪些地方占了大量内存

  •  
  •   0toz · Feb 6, 2024 · 2256 views
    This topic created in 1002 days ago, the information mentioned may be changed or developed.

    RT ,正在接手一个 n 手项目,打开发现占了差不多 1 个 g 的内存

    2 replies  •  2024-02-06 21:29:43 +08:00
    wu00
    wu00
    Feb 6, 2024
    1
    别的不知道,edge 有个浏览器任务管理器。
    我 30 多个页面,基本上每个页面的内存占用最多的都是 js
    beyondstars
    beyondstars
    Feb 6, 2024❤️2
    2
    Chrome -> 开发者工具 -> 内存 -> 生成快照,可以看到各个 objects 占用多大内存。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2033 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 16:27 · PVG 00:27 · LAX 08:27 · JFK 11:27
    ♥ Do have faith in what you're doing.