memory leak debug

前端 未结 6 1570
臣服心动
臣服心动 2021-02-15 04:17

What are some techniques in detecting/debugging memory leak if you don\'t have trace tools?

6条回答
  •  执笔经年
    2021-02-15 04:36

    1. Check out your loops
    2. Look at where you are allocating variables - do you ever de-allocate them?
    3. Try and reproduce the leak with a small subset of suspected code.
    4. MAKE trace tools - you can always log to a file.

提交回复
热议问题