I'd suggest as a feature to measure the amount of time spent in editor, terminal and browser and especially on Google search, StackOverflow and Github. Also, the number of compilation errors could be useful. Another feature is to measure time spent on each portion of the source file, especially portions where the developer returns many times to make changes.
The developer text editor of the future should be able to collect features from a smart watch, camera, mouse, text cursor position, the terminal and the browser.