Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

flutter_memory_leak_check

it is easy to know whether a variable is correctly reclaimed by memory.

principle:

by using the reference as the key of the weak reference, when the gc is executed, if the reference can be recycled, it will be deleted from the weak reference.

step 1:add debugging options

–observatory-port=50443

step 2:run port forwarding tool

cd forwarding_tool
go run main.go

getting started

// flutter memory leak detection toolkit.

late memorychecker globalchecker = memorychecker("192.168.80.144");

let list memoryleaklist = [];
globalchecker.addwatch(memoryleaklist, remarks: "watch memoryleaklist note");

globalchecker.forcegc();

/// will print `memoryleaklist` failed to recycle
globalchecker.checkgc();

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.