Giter VIP home page Giter VIP logo

Comments (5)

barnett-yuxiang avatar barnett-yuxiang commented on May 14, 2024

@willnorris @mspang @nico @fmayer

Hi, can anyone help me?

from perfetto.

chromy avatar chromy commented on May 14, 2024

Your file begins as follows:

TRACE:
# tracer: nop
#
# entries-in-buffer/entries-written: 41390/41390   #P:8
#
#                                      _-----=> irqs-off
#                                     / _----=> need-resched
#                                    | / _---=> hardirq/softirq
#                                    || / _--=> preempt-depth
#                                    ||| /     delay
#           TASK-PID    TGID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |        |      |   ||||       |         |
          <idle>-0     (-----) [002] .n.1 223230.807255: cpu_idle: state=4294967295 cpu_id=2
          <idle>-0     (-----) [004] ...1 223230.807282: cpu_idle: state=4294967295 cpu_id=4
          <idle>-0     (-----) [004] d..1 223230.807289: cpu_idle: state=3 cpu_id=4
          <idle>-0     (-----) [002] d..1 223230.807329: cpu_idle: state=3 cpu_id=2
          <idle>-0     (-----) [003] .n.1 223230.807422: cpu_idle: state=4294967295 cpu_id=3
          <idle>-0     (-----) [003] d..1 223230.807476: cpu_idle: state=3 cpu_id=3
          <idle>-0     (-----) [000] d..1 223230.807481: cpu_idle: state=0 cpu_id=0

The issue is the first line:

TRACE:

If you delete this the trace works fine.

The line that causes the issue is here:

if (start.find("TRACE:") != std::string::npos)

When we see TRACE: we expect the file to be in .ctrace format, which is to say a .zip file. In fact your trace is not compressed so we should instead use the kSystraceTraceType parser. This can happen if someone manually uses atrace without the compression option -z. We should amend the trace detection logic to take this situation into account.

from perfetto.

barnett-yuxiang avatar barnett-yuxiang commented on May 14, 2024

@chromy Many many thx~

from perfetto.

LalitMaganti avatar LalitMaganti commented on May 14, 2024

Reopening to track the auto-detection in trace processor

from perfetto.

LalitMaganti avatar LalitMaganti commented on May 14, 2024

This should now be fixed for real!

from perfetto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.