Example usage for android.os Debug stopAllocCounting

List of usage examples for android.os Debug stopAllocCounting

Introduction

In this page you can find the example usage for android.os Debug stopAllocCounting.

Prototype

@Deprecated
public static void stopAllocCounting() 

Source Link

Document

Stop counting the number and aggregate size of memory allocations.

Usage

From source file:com.android.profilerapp.memory.MemoryFragment.java

@Override
public void onDestroy() {
    super.onDestroy();

    // Deprecated - currently used for detecting when GC happens
    Debug.stopAllocCounting();
}