Skip to content

Instantly share code, notes, and snippets.

@midom
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save midom/5342acd489aad11f902e to your computer and use it in GitHub Desktop.
Save midom/5342acd489aad11f902e to your computer and use it in GitHub Desktop.
localtime() is expensive
Events: 658K cycles
- 58.75% mysqlbinlog [kernel.kallsyms] [k] _raw_spin_lock ◆
- _raw_spin_lock ▒
- 49.41% dput ▒
- 50.09% path_put ▒
- 97.72% do_path_lookup ▒
- 100.00% user_path_at ▒
vfs_fstatat ▒
vfs_stat ▒
sys_newstat ▒
- system_call ▒
- 100.00% __xstat64 ▒
- 100.00% tzset_internal ▒
__tz_convert ▒
Log_event::print_timestamp(st_io_cache*, long*) ▒
+ Log_event::print_header(st_io_cache*, st_print_event_info*, bool) ▒
+ 2.27% vfs_fstatat ▒
- 49.91% link_path_walk ▒
+ do_path_lookup ▒
- 25.12% nameidata_drop_rcu ▒
link_path_walk ▒
+ do_path_lookup ▒
- 24.03% path_get ▒
- 99.99% nameidata_drop_rcu ▒
link_path_walk ▒
+ do_path_lookup ▒
+ 1.18% __d_lookup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment