apache/incubator-reef — pull request #8 by jwang98052 (2014-10-30 22:03:33+00:00)
Title: Juwang-logscope-logparser -code instruments

To instrument reef code and measure the performance, this PR adds LogScope and LogScopeFactory classes. User can call LogScope with try-with-resources to measure the time elapsed in millis.

LogScopeFactory supplies predefined methods, which return LogScope objects for the critical points/stages in Reef such as Driver start, Evaluator submit, etc . User can still create LogScope object directly for any piece of the code range.

This PR instruments Reef code by inserting LogScopes at major phases. A LogParser is created to parse the log data to find run time performance.

Two http requests are supported. One is for stages the other is for duration. The result can be seen by simple http request like:
http://localhost:8080/reef/v1/duration
http://localhost:8080/reef/v1/stages