[google-appengine] Re: Is there a way to get mcycles in code?

2008-10-17 Thread Ethan Post
Starred it, thanks.

On Thu, Oct 16, 2008 at 4:30 PM, Josh Heitzman [EMAIL PROTECTED]wrote:


 Just opened http://code.google.com/p/googleappengine/issues/detail?id=789
 - API to get current mcycle consumption during request processing.

 On Oct 16, 9:04 am, Ethan Post [EMAIL PROTECTED] wrote:
  I would like to include the # of mcycles consumed in some of my logging.
 At
  the moment it a put to two entities has occasional timeouts and the
 number
  of mcycles appears to fluctuate for essentially the same put. I would
 like
  to add some logging to see if this is the case and if so what the
 variations
  are.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
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
-~--~~~~--~~--~--~---



[google-appengine] Re: Is there a way to get mcycles in code?

2008-10-16 Thread Mahmoud

You might want to profile your code:
http://code.google.com/appengine/kb/commontasks.html#profiling

On Oct 16, 12:04 pm, Ethan Post [EMAIL PROTECTED] wrote:
 I would like to include the # of mcycles consumed in some of my logging. At
 the moment it a put to two entities has occasional timeouts and the number
 of mcycles appears to fluctuate for essentially the same put. I would like
 to add some logging to see if this is the case and if so what the variations
 are.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
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
-~--~~~~--~~--~--~---



[google-appengine] Re: Is there a way to get mcycles in code?

2008-10-16 Thread Ethan Post
I have profiled the code. The problem with profiling is that the top CPU
consuming calls appear to be part of the appengine framework, nothing I can
do anything about. Also I don't understand how to correlate the information
from profiling directly to mcycles. Just putting debug calls and looking at
the timestamps tells me that most of time is taking place when I call put. I
would like to record mcycles for each logging.debug call. Maybe I can add
some calls using the profiler but I haven't figured out how to do that.

On Thu, Oct 16, 2008 at 11:29 AM, Mahmoud [EMAIL PROTECTED] wrote:


 You might want to profile your code:
 http://code.google.com/appengine/kb/commontasks.html#profiling

 On Oct 16, 12:04 pm, Ethan Post [EMAIL PROTECTED] wrote:
  I would like to include the # of mcycles consumed in some of my logging.
 At
  the moment it a put to two entities has occasional timeouts and the
 number
  of mcycles appears to fluctuate for essentially the same put. I would
 like
  to add some logging to see if this is the case and if so what the
 variations
  are.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
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
-~--~~~~--~~--~--~---



[google-appengine] Re: Is there a way to get mcycles in code?

2008-10-16 Thread Josh Heitzman

I'm not aware of anyway to get the mcycle in code either.  As a result
I've been breaking out little chunks of my processing and testing how
long each on takes and I've found that updating an existing entity
consumes no less then an average of 718 mcycles.  And that's for an
entity with an empty StringListProperty or an EmptyBlobProperty.
Starting adding properties or items to a list and the mcycle
consumption of an update starts jumping up.  For example an entity
with a single StringLIstProperty that has 40 elements each 14
characters long takes and average 2141 mcycles to update.

See 
http://groups.google.com/group/google-appengine/browse_thread/thread/a29a4b1dd606f52e
for details.

On Oct 16, 10:07 am, Ethan Post [EMAIL PROTECTED] wrote:
 I have profiled the code. The problem with profiling is that the top CPU
 consuming calls appear to be part of the appengine framework, nothing I can
 do anything about. Also I don't understand how to correlate the information
 from profiling directly to mcycles. Just putting debug calls and looking at
 the timestamps tells me that most of time is taking place when I call put. I
 would like to record mcycles for each logging.debug call. Maybe I can add
 some calls using the profiler but I haven't figured out how to do that.

 On Thu, Oct 16, 2008 at 11:29 AM, Mahmoud [EMAIL PROTECTED] wrote:

  You might want to profile your code:
 http://code.google.com/appengine/kb/commontasks.html#profiling

  On Oct 16, 12:04 pm, Ethan Post [EMAIL PROTECTED] wrote:
   I would like to include the # of mcycles consumed in some of my logging.
  At
   the moment it a put to two entities has occasional timeouts and the
  number
   of mcycles appears to fluctuate for essentially the same put. I would
  like
   to add some logging to see if this is the case and if so what the
  variations
   are.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
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
-~--~~~~--~~--~--~---



[google-appengine] Re: Is there a way to get mcycles in code?

2008-10-16 Thread Josh Heitzman

Just opened http://code.google.com/p/googleappengine/issues/detail?id=789
- API to get current mcycle consumption during request processing.

On Oct 16, 9:04 am, Ethan Post [EMAIL PROTECTED] wrote:
 I would like to include the # of mcycles consumed in some of my logging. At
 the moment it a put to two entities has occasional timeouts and the number
 of mcycles appears to fluctuate for essentially the same put. I would like
 to add some logging to see if this is the case and if so what the variations
 are.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
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
-~--~~~~--~~--~--~---