The problem is that currently FunctionGraph don't have the profilestats object when it is created. So I would need to init it in the ProfileStats(). I would keep more of the profile information at the same place, so this is good, but I'm not sure. What do you prefer?