Example usage for android.os Debug startAllocCounting

List of usage examples for android.os Debug startAllocCounting

Introduction

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

Prototype

@Deprecated
public static void startAllocCounting() 

Source Link

Document

Start counting the number and aggregate size of memory allocations.

Usage

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

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    mProfilerHandler = new Handler();

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