2013-01-02

Entries

I need to learn about the different types of mapping in vim but feeling to sleepy and lazy right now.

#

Spent a good part of last night reviewing, organizing, trimming down, commenting and reading up on my .vimrc last night.

#

Added a few more shortcuts and picked a new colorscheme. Think it helped me find my resolve for using vim.

#

Fussing with terminal color schemes.

#

Trying out "Tango Dark" in iTerm 2. Need to look into how the terminal app defines colors, how the shell defines them and then how tools like vim define them and how it all works out in the end.

#

I had said that if the G+ Seven Languages group didn't have enough users that I'd switch it from Private to Public. I quickly learned that you can't change the visibility of a G+ Community once it has been created.

#

But it seems like the members prefer a small study group anyways, so far.

#

Spending a little time reacquanting myself with tmuxinator and getting the common setups I use into my dotfiles.

#

Not sure if I'll actually share those files just yet since they have "private" paths in them.

#

But the directory linking is set up for now.

#

Trying to profile some slow Ruby code (wondering why my tests are running so slow)

#

I'm using RSpec so to start you can do rspec --profile and that will print out the top 10 slowest specs.

#

I saw they were all happening in one class but I want more details on what's happening.

#

Found method_profiler

#

Added the gem to my developer group in my Gemfile and ran bundle.

#

Then opened up the Rails console with rails console

#

Had it observer my class with profiler = MethodProfiler.observe(InventoryProcessor)

#

Created a new instance of the class, ran one of its methods and then looked at the report with puts profiler.report

#

It only showed one method being called so I ran it on the class that InventoryProcessor is using to get at data and that seems to show more calls for some reason.

#

Need to dig into this a little more.

#

Okay, turns out it only profiles public and protected methods and the method I was calling was in-turn calling a number of private methods.

#

I opened up an issue for the gem to ask for this to be added: Profile private methods in addition to public and protected

#

I should take a stab at forking the project and adding it myself.

#

Comments

comments powered by Disqus