Closed Bug 638284 Opened 13 years ago Closed 11 years ago

JM: Simple function-level hit and cycle counter

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: dvander, Unassigned)

Details

Attachments

(1 file)

Attached patch v0Splinter Review
This patch starts an rdtsc timer at function prologues, then takes the difference at the epilogue and adds it to script->ncycles. When a script is destroyed, its statistics are dumped like this:

jit prof (script "crypto.js") (line "243") (cycles 12250744) (hits 158295) (per 77)

There's no callgraph information or anything yet. This is quick and dirty and I'm not sure if it's enough to be helpful yet.
JM was removed, and there's pccounts + code to integrate with various profilers now.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: