チェンジセット 385: as3/Profiler/src/Profiler.as

差分発生行の前後
無視リスト:
コミット日時:
2008/05/10 13:17:00 (4 年前)
コミッタ:
jinten_ken
ログメッセージ:

FlashPlayer?のバージョンチェック機構を追加。

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/Profiler/src/Profiler.as

    r358 r385  
    2626        import flash.sampler.NewObjectSample; 
    2727        import flash.utils.Dictionary; 
     28        import net.jinten.debug.utils.DebugUtils; 
    2829         
    2930        /** 
     
    3940                /** 
    4041                 * Profilerインスタンスです。初めてこのプロパティを呼んだときにインスタンスが生成され、プロファイルが開始されます。  
     42                 * ただし、プロファイルを行うためには、バージョン9,0,115,0以上のDebugプレイヤで再生されている必要があります。 
     43                 * アプリケーションを再生しているFlashPlayerが条件を満たしていない場合はnullを返します。 
    4144                 */ 
    4245                public static function get instance():Profiler { 
    43                         if (_instance == null) { 
     46                        if (_instance == null && DebugUtils.isProfilerEnabled()) { 
    4447                                _instance = new Profiler(new SingletonEssence); 
    4548                        }