Skip to content

NaN in ruby results #9

Description

@mahmoodn

I tried to attach the perf command to a process and I allowed it to capture for some seconds

$ sudo ~/codestitcher/build/perf/perf record -e instructions:u --branch-filter any,u -o perf.data -p 32594
^C[ perf record: Woken up 96 times to write data ]
[ perf record: Captured and wrote 25.136 MB perf.data (61045 samples) ]

Now that, when I run the buy command, the stats are NaN.

$ sudo ruby ~/codestitcher/scripts/gen_layout.rb -r nginx -p perf.data -L CS -D 4096
PERF FILES ARE: ["perf.data"]
reading profile: /home/mahmood/nginx-1.14.2/install/sbin/perf.data
reading exe syms for: /home/mahmood/nginx-1.14.2/install/sbin/nginx
reading exe syms completed
reading profile completed
TOTAL WEIGHT: 0
(DYNAMIC) DISTANCE LIMIT: 4096
without affinity, chains: 0
(STATIC INTRA_FUNC) DISTANCE LIMIT: 4096
without affinity, chains: 0
RETURNS:false
ORIGINAL
CALLS: 16 => 0(NaN%) , 64 => 0(NaN%) , 4096 => 0(NaN%) , 262144 => 0(NaN%) , 2097152 => 0(NaN%) ,  => 0(NaN%)
OPTIMIZED
CALLS: 16 => 0(NaN%) , 64 => 0(NaN%) , 4096 => 0(NaN%) , 262144 => 0(NaN%) , 2097152 => 0(NaN%) ,  => 0(NaN%)

Is there any way to debug more?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions