INCLUDE: unknown module 'sched.time_in_state'
E:\tools\anaAnaly_myself\perfetto-43.1\python λ python Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
from perfetto.trace_processor import TraceProcessor tp = TraceProcessor(trace='trace') tp.query('INCLUDE PERFETTO MODULE sched.time_in_state') Traceback (most recent call last): File "
", line 1, in File "C:\olib\python37\lib\site-packages\perfetto\trace_processor\api.py", line 284, in query perfetto.trace_processor.api.TraceProcessorException: INCLUDE: unknown module 'sched.time_in_state'
tp.query('INCLUDE PERFETTO MODULE sched.time_in_state;') Traceback (most recent call last): File "
", line 1, in File "C:\olib\python37\lib\site-packages\perfetto\trace_processor\api.py", line 284, in query perfetto.trace_processor.api.TraceProcessorException: INCLUDE: unknown module 'sched.time_in_state
This comes from the fact that sched.time_in_state was added in https://github.com/google/perfetto/commit/fd5ae3e28bcdac71bfe7480ec0a42fbd7d829419 and there has not been a release of Perfetto since that point.
@ddiproietto are we OK to do a release of Perfetto this week?
Is there any other way I can obtain this table, sched_percentage_of_time_in_state?
Two options:
- Wait for us to do a release
- Copy the statement which creates the table (and its dependencies) from https://github.com/google/perfetto/blob/main/src/trace_processor/perfetto_sql/stdlib/sched/time_in_state.sql and run that directly instead.
Thank you!
@ddiproietto are we OK to do a release of Perfetto this week?
Yep, let's get that done today.
This should now be resolved with the latest release.