Ejemplo n.º 1
0
 private static void dumpCurrentThreadInfo(
     final DebugLevel pDebugLevel, final StackTraceElement pCaller) {
   Debug.log(
       pDebugLevel,
       pCaller.getClassName()
           + "."
           + pCaller.getMethodName()
           + "("
           + pCaller.getFileName()
           + ".java:"
           + pCaller.getLineNumber()
           + ") @(Thread: '"
           + Thread.currentThread().getName()
           + "')");
 }
  private void onHandleAverageDurationElapsed() {
    if (BuildConfig.DEBUG) {
      final int texturesLoadedCount = this.mTextureManager.getTexturesLoadedCount();
      final int textureMemoryUsed = this.mTextureManager.getTextureMemoryUsed();

      this.mTexturesLoadedCountMax = Math.max(texturesLoadedCount, this.mTexturesLoadedCountMax);
      this.mTextureMemoryUsedMax = Math.max(textureMemoryUsed, this.mTextureMemoryUsedMax);

      Debug.log(
          this.mDebugLevel,
          String.format(
              "MEM: %d kB in %d textures (MAX: %d kB in %d textures)",
              textureMemoryUsed,
              texturesLoadedCount,
              this.mTextureMemoryUsedMax,
              this.mTexturesLoadedCountMax));
    }
  }