Add summary function

Added a simple function that aggregates the calling stack buttom-up instead of top-down.