Ticket #1543 (closed experimental: fixed)
Create PARROT_HOT and PARROT_COLD function annotations
Reported by: | petdance | Owned by: | petdance |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | profiling | Version: | 2.2.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
"The hot attribute is used to inform the compiler that a function is a hot spot of the compiled program. The function is optimized more aggressively and on many target it is placed into special subsection of the text section so all hot functions appears close together improving locality."
There's also the cold attribute.
Other compilers likely have optimizations that can be used here as well.
Change History
Note: See
TracTickets for help on using
tickets.