Hey Everyone,
TL;DR: Genius went through preference files and found the corrupt one -- works fine now
Background: I had a mid-2011 MBP with lion, and transferred to my mid-2012 11" mba. I soon discovered that the "dock" process was using up >85% of my cpu, and causing all sorts of related problems (fan speeds, temp, battery life).
Solution:
Went to the genius bar and this is what he did:
Replaced the mba (since I bought it yesterday), and transferred all my data to the new computer. Result: same problem
Created a new user on the mba. Result: problem solved
So he renamed my existing library folder ("\Users\*username*\Library\) to
"library old". Then, from the new user's account (he logged in as "root" user) and copied/pasted the clean "library" folder into into my original user's library (replacing the existing one).*
*here he did some terminal stuff to show hidden folders b/c the user's library is hidden
Then he copied, folder by folder (then file by file when we isolated the problem to be in the preferences folder), my files from "library old" into "library," after each folder, logging out (cmd+shift+q), relogging into my user account, and running activity manager to see if the "dock" application was still acting up.
After ~1.5hours, we identified "com.apple.desktop.plist" and "com.apple.desktop.plist.lockfile" as the corrupt files and deleted them.
Result: problem solved.
Hope this helps!