0toz
V2EX  ›  问与答

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

  •  
  •   0toz · Feb 6, 2024 · 1879 views
    This topic created in 854 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
        1
    wu00  
       Feb 6, 2024
    别的不知道,edge 有个浏览器任务管理器。
    我 30 多个页面,基本上每个页面的内存占用最多的都是 js
    beyondstars
        2
    beyondstars  
       Feb 6, 2024   ❤️ 2
    Chrome -> 开发者工具 -> 内存 -> 生成快照,可以看到各个 objects 占用多大内存。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4693 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 09:59 · PVG 17:59 · LAX 02:59 · JFK 05:59
    ♥ Do have faith in what you're doing.