Update StackTracer on retain and release function