gwt /
gwt /
78b0b957d9492cd79cfc0b9c442e8f8c48a7e6cf Super Dev Mode: introduce compile job tracking
Externally visible changes:
- The /progress RPC call now returns jobId instead of compileId.
(But this field isn't used in dev_mode_on.js or stub.nocache.js.)
- The server-side output looks different. We create a separate
TreeLogger branch for each HTTP request and each Job.
Introduces the Job, JobRunner, and ProgressTable classes. Each Job
tracks the state of one compile request submitted to Super Dev Mode.
The ProgressTable instance keeps track of all submitted jobs.
This will allow us to implement better progress tracking, since we
can find out about jobs that are submitted but haven't started
running yet. (Before, this queuing happened invisibly by blocking
on a synchronized method.)
Additional refactoring:
- Fixed logging so that each logger has the right parent. This
means we need to pass the logger as a parameter instead of storing
it as a field most of the time.
- Renamed and documented the various methods that invoke the
compiler, so it's easier to keep them straight.
Future patches will change the /progress and /recompile API's
to allow multiple modules to be submitted at once and their
progress tracked.
Change-Id: I76be48ed98f0fa2ca8af728dbc68e078d4665492
Review-Link: https://gwt-review.googlesource.com/#/c/8921/
10 files changed