As a development of reporting task duration per queue type, split it further — per task type (see TaskType from TaskRunnerHelper [1]. It needs to be exposed to other parts of codebase, probably by moving to base).
Difficulty here is to plumb metadata about a task through all layers. Most likely it will involve changing base::PendingTask or base::TaskTraits (or will involve some other form of integration with Lucky Luke).
[1]https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/dom/TaskRunnerHelper.h?q=TaskRunnerHelper&dr=CSs&l=20
Comment 1 by altimin@chromium.org
, Mar 16 2017