Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created September 20, 2021 19:17
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 MasterDuke17/724330f4dfa591a1e158d6acb022d71c to your computer and use it in GitHub Desktop.
Save MasterDuke17/724330f4dfa591a1e158d6acb022d71c to your computer and use it in GitHub Desktop.
alias bailtofunc="r -ne 'BEGIN my (%h, \$f); if .starts-with(q|Spesh of |) and /^\"Spesh of \" $<func>=(<-[\ ]>+)/ { \$f = ~$<func> } elsif .contains(q|JIT: bailed completely because of <|) and /\"JIT: bailed completely because of <\" $<op>=(<-[>]>+)/ { %h{q|l_|~$<op>}.push(\$f) } elsif .contains(q|expr bail: Cannot get template for: |) and /\"expr bail: Cannot get template for: \" $<op>=(\w+)/ { %h{q|t_|~$<op>}.push(\$f) }; END for %h.keys.sort -> \$k { say qq|\$k: %h{\$k}.Bag()| }'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment