Can you not get the performance information you need from appstats?

In appstats you can see how much time each call is using.

A random example from app stats, I can see that a Put cost 41ms of CPU
and 620ms of api).
According to my understanding - this will only block the CPU of the
webserver for 41ms (so it can return to the user quickly), but it will
use a total of 661ms cpu time (between the webserver and the various
datastore servers)


Delete does appear to be quite expensive (I presume as it has to
delete the entity, and all its index records)

J.


On Jun 25, 1:42 pm, Efi Merdler-Kravitz <[email protected]> wrote:
> Hey Guys,
>
> My CPU quota is running out quite quickly and in order to understand
> what is eating the resources I decided to use appsstats  and API calls
> for my disposal:
>
> 1. QuotaService -
>
> I'm using the following:
> long start = mQuotaService.getCpuTimeInMegaCycles();
> ...
> long end = mQuotaService.getCpuTimeInMegaCycles();
> double cpuSeconds = mQuotaService.convertMegacyclesToCpuSeconds(end -
> start);
>
> When printing to the log I'm getting 0.52 however when looking at the
> log numbers at the top I get
> /job_worker 200 5530ms 51845cpu_ms 51125api_cpu_ms (printed in bold
> red)
>
> couple of questions:
> a. What is the differences between the numbers? what is cpu_ms and
> api_cpi_ms ?
> b. Why the quota api tells me half a second however the log themselves
> give me higher numbers (5530 ms) ?
>
> 2.  appstats -
> appstats give me number of RPC calls
>
> How can I use these numbers to measure the performance, for example I
> know that datastore_v3.Delete is being called allot, does this call
> takes the most of my cpu time?
>
> Thank you,
> Efi

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to