Instead of porting ThemeKey Debug from 7.x to 8.x we should consider to provide a custom data collector for the Web Profiler module.
The new ThemeKey Debug should replace the themekey.engine service to collect the data if enabled.