Skip to content

Instantly share code, notes, and snippets.

@jbclements
Created December 18, 2012 22:27
Show Gist options
  • Save jbclements/4332672 to your computer and use it in GitHub Desktop.
Save jbclements/4332672 to your computer and use it in GitHub Desktop.
example code using profile and graphviz
#lang racket
(require profile
(prefix-in gv: profile/render-graphviz))
(define (f)
(sleep 0.5)
(+ (g) (h)))
(define (g) (sleep 0.5) 13)
(define (h) (sleep 0.5) 14)
(profile-thunk
#:render gv:render
(lambda ()
(f)
(newline)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment