ezekg / sass-prof

A code profiler for Sass libraries
MIT License
25 stars 1 forks source link

Track function call stack #9

Open ezekg opened 9 years ago

ezekg commented 9 years ago

Also add an option to display the call stack in the results table. Need a way to determine if a function is being executed from inside of the previously visited function.

chriseppstein commented 9 years ago

During perform, the @environment instance variable tracks the current stack. https://github.com/sass/sass/blob/stable/lib/sass/environment.rb#L133