perfetto icon indicating copy to clipboard operation
perfetto copied to clipboard

INCLUDE: unknown module 'sched.time_in_state'

Open ChenJiahao-A opened this issue 2 years ago • 6 comments

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

ChenJiahao-A avatar Apr 08 '24 07:04 ChenJiahao-A

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?

LalitMaganti avatar Apr 08 '24 07:04 LalitMaganti

Is there any other way I can obtain this table, sched_percentage_of_time_in_state?

ChenJiahao-A avatar Apr 08 '24 08:04 ChenJiahao-A

Two options:

  1. Wait for us to do a release
  2. 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.

LalitMaganti avatar Apr 08 '24 08:04 LalitMaganti

Thank you!

ChenJiahao-A avatar Apr 08 '24 08:04 ChenJiahao-A

@ddiproietto are we OK to do a release of Perfetto this week?

Yep, let's get that done today.

ddiproietto avatar Apr 08 '24 08:04 ddiproietto

This should now be resolved with the latest release.

LalitMaganti avatar Apr 11 '24 10:04 LalitMaganti