Is it possible to use the data provided by Appstats inside my code? I want to get the RPC Total and Grand Total values of each of my task. Is there a way to do this?
It's certainly possible, but you'll need to reach into the innards of appstats to do so - see the source code. It's probably not a good idea, though. If you need these measurements, you should probably learn from the appstats source and instrument your code yourself.