I've seen a couple of apps (iPad app) that can log into your account and
monitor various things.
I took a very low-tech approach to average the response time from logs: I
filter logs by label (e.g. path:/place/.*) and set the limit to 200 (the
maximum logs you can show in one page) and then copy and past the results
into a file and run this to average the times:
public class GetAverageTimeFromLogPage
{
public static void main(String[] args) throws MalformedURLException,
IOException
{
FileReader reader = new FileReader(args[0]);
String text = CharStreams.toString(reader);
long total = 0;
int count = 0;
Pattern pattern = Pattern.compile(" 200 (\\d+)ms");
Matcher matcher = pattern.matcher(text);
while (matcher.find())
{
String time = matcher.group(1);
long value = Long.parseLong(time);
// remove restarts
if (value <= 1000)
{
count++;
total += value;
}
}
System.out.println(total / count + " from " + count);
}
}
I hope someone has a nicer method!!
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine-java/-/lwLRH0p6XYkJ.
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-java?hl=en.