1. A computer-implemented method for detecting memory management anti-patterns, comprising: periodically generating, using a processor, census data for at least one object type in a heap; collecting the periodically generated census data for each object type into a time series; analyzing, using the processor, each time series; classifying, using the processor, each time series into one of a plurality of different categories based on the analysis; determining a memory-related metric, wherein the memory-related metric comprises the size of the heap; comparing the memory-related metric to a threshold value; and performing the generating, collecting, analyzing, and classifying only upon the memory-related metric being above the threshold value.