LoginSignup
9
9

More than 5 years have passed since last update.

RubyMotion アプリのメモリ関連の不具合を簡単に探す方法(2)

Posted at

以前に書いたRubyMotion アプリのメモリ関連の不具合を簡単に探す方法という方法は忘れてください。

Instrumentsだけで調査することができたようです。

1. Instrumentsを起動する

rake profileコマンドでInstruments.appを動かします。

% rake profile template="Zombies"

Instrumentsが起動したあと、アプリの不具合が発生する手順を再現します。

131206-0001.png

あとは、以下の図の操作を行っていただければ、簡単にautoreleaseが呼び出され、意図せずにオブジェクトが解放されている箇所がわかります。

131208-0005-14.png

131208-0006-15.png

131208-0007-4.png

9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9