Member-only story
DevTool-Memory View
๐ Flutter Memory Debugging Series
- Part 1. Flutter Memory Leak โ ์์ธ ํ์ ๋ฐ ์ฌ๋ก ๋ถ์
- Part 2. DevTool-Memory Debugging โ Heap Snapshot ์ค์ ๋ฐ์ดํฐ ๋ถ์
- Part 3. DevTool-Memory View โ ๋๋ฒ๊น ๋ชจ๋ ๋ฐ ๋๊ตฌ ํ์ฉ
โ์ด ๊ธ์ ๋ฉค๋ฒ ์ ์ฉ ์ฝํ ์ธ ์ด๋, [์ฌ๊ธฐ]๋ฅผ ํด๋ฆญํ์๋ฉด ์ ์ฒด ๋ด์ฉ์ ๋ฐ๋ก ํ์ธํ์ค ์ ์์ต๋๋ค.โ
DebTool์ Memory Tap์ ์ฝ๋๋ค.
Memory chart
Memory chart๋ฅผ ์ด๋ฉด ๋๋ต์ ์ด Memory ์๋น์จ์ ํ์ธํ ์ ์์ต๋๋ค.
Memory Chart์ ์ค๋ฅธ์ชฝ์๋ Pause(โธ๏ธ), Resume(โถ๏ธ), Clear(๐ซ) ๋ฒํผ์ด ์์ต๋๋ค. ์ด๋ฅผ ์ด์ฉํด ๊ธฐ์กด Memeory data๋ฅผ clearํ๊ณ ์๋ก Memory data๋ฅผ ์์งํ ์ ์์ต๋๋ค.
Default option์ ๋ณ๊ฒฝํ๋ฉด timeline์๊ฐ ๊ธฐ์ค์ ๋ณ๊ฒฝํ ์ ์์ต๋๋ค.
Memeory chart์ ํน์ ์ง์ ์ clickํ๋ฉด ์ข ๋ ์์ธํ ์ ๋ณด๋ฅผ ๋ณผ ์ ์์ต๋๋ค.
- RSS or Resident Set Size: RSS ํฌ๊ธฐ๋ ํ์ฌ memory์ load๋ program์ memory์ ๋๋ค. ์ฆ์ ์ฌ์ฉ๊ฐ๋ฅํ memoryโฆ







