[{"data":1,"prerenderedAt":238},["ShallowReactive",2],{"project-6148137":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":15,"tier":18,"category":19,"subcategory":20,"format":21,"keywords":22,"reception":27,"sentiment":28,"stance_mix":29,"scored_comments":33,"aspects":34,"strip":39,"post_text":40,"what":41,"said":75,"maker_in_thread":136,"shape":144,"grid":148,"attempts":198,"same_week":199,"maker_shows":176,"maker_hidden":230,"reader_version":231,"card":232},"6148137","Rails Performance Help","Tracer Bullets","title","Show HN: Rails Performance Help – Tracer Bullets","http:\u002F\u002Fninjasandrobots.com\u002Frails-performance-help-tracer-bullets\u002F","ninjasandrobots.com","nate",1375462776,2013,68,22,369,1739,"notable","dev_tools","performance profiling","library",[23,24,25,26],"rails performance","ruby profiling","tracer bullets","slow code","curious",0.273,{"positive":30,"neutral":31,"mixed":32,"critical":32},3,5,0,8,{"idea":35,"execution":37},{"positive":36,"critical":32},2,{"positive":38,"critical":32},1,[30,32,32,32,32,32,31,32,30,31,32,32,32,31,32,30,32,30,32,32,30,32],null,{"problem":42,"audience":52,"pricing":40,"motivation":61,"time_to_build":40,"stack":65,"openness":74,"stage":74,"team_size":74},{"value":43,"source":44,"evidence":45},"Finding slow sections of Rails code during development","maker",[46,49],{"id":47,"by":11,"text":48},"6148713","That's a good question. I've used ruby-prof before, but for me that requires a cognitive load and steps I don't always want to preform in many situations. This just seems…",{"id":50,"by":11,"text":51},"6148348","Awesome to hear! The version I used at the Obama campaign had other bells and whistles like color coding the log entry. I just arbitrarily picked some time I thought was slow,…",{"value":53,"source":54,"evidence":55},"Rails developers","inferred",[56,57],{"id":47,"by":11,"text":48},{"id":58,"by":59,"text":60},"6148328","jrochkind1","Nice, I've often needed this as an initial look at where the slowpoints might be, and hacked my own solution, this will be helpful.",{"value":62,"source":44,"evidence":63},"Simpler than ruby-prof for quickly finding slow code",[64],{"id":47,"by":11,"text":48},[66,70],{"value":67,"source":54,"evidence":68},"Ruby",[69],{"id":47,"by":11,"text":48},{"value":71,"source":54,"evidence":72},"Rails",[73],{"id":47,"by":11,"text":48},"unknown",{"praise":76,"objections":90,"requests":91,"questions":96,"alternatives":104},[77],{"value":78,"source":79,"evidence":80},"Simple and useful for finding slow spots","commenter",[81,82,86],{"id":58,"by":59,"text":60},{"id":83,"by":84,"text":85},"6148668","djbender","Very simple library and execution! Thanks so much!",{"id":87,"by":88,"text":89},"6149343","burgeralarm","This is pretty cool. Simple but extremely useful. I've written a quick and dirty port to Python, for anyone who'd like to take a look: https:\u002F\u002Fgithub.com\u002Fbclune\u002Frubber_bullets",[],[92],{"value":93,"source":44,"evidence":94},"Color coding of log entries by elapsed time",[95],{"id":50,"by":11,"text":51},[97],{"value":98,"source":79,"evidence":99},"How does it compare to New Relic",[100],{"id":101,"by":102,"text":103},"6148199","gkop","How is this better than New Relic?",[105,112,119,125,129],{"value":106,"source":79,"evidence":107},"ruby-prof",[108],{"id":109,"by":110,"text":111},"6148374","cheald","Why not just go straight for ruby-prof? You can use it to instrument discrete sections of code or whole programs, and you can dump the results to things like cachegrind format,…",{"value":113,"source":79,"evidence":114},"Bullet gem",[115],{"id":116,"by":117,"text":118},"6148840","sergiotapia","Also if you want something to pull your ear when you're fudging things up, use the Bullet gem. Literally, just add this initializer in your development.rb ```…",{"value":120,"source":79,"evidence":121},"request_profiler",[122],{"id":123,"by":110,"text":124},"6148787","I'm putting together a blog post. :) That said, https:\u002F\u002Fgithub.com\u002Fjustinweiss\u002Frequest_profiler is as simple as a Gemfile line and request parameter, and gives you far deeper…",{"value":126,"source":79,"evidence":127},"New Relic",[128],{"id":101,"by":102,"text":103},{"value":130,"source":79,"evidence":131},"MiniProfiler",[132],{"id":133,"by":134,"text":135},"6148515","skram","Add http:\u002F\u002Frailscasts.com\u002Fepisodes\u002F368-miniprofiler to your list of tools for development mode",{"comments":137,"answered":30,"key":138},7,[139,140,143],{"id":47,"text":48},{"id":141,"text":142},"6149372","I love the name! Thanks!",{"id":50,"text":51},{"commenters":145,"max_depth":146,"maker_replies":137,"first_comment_mins":147,"lifespan_hours":137},13,4,11,[149,151,153,155,156,158,162,164,166,167,168,170,173,175,177,179,183,185,188,190,194,196],[116,32,30,150,117,32],"project\u002Fneutral\u002Fnone",[109,38,32,152,110,32],"commenter\u002Fneutral\u002Fnone",[47,38,32,154,11,38],"project\u002Fpositive\u002Fexecution",[123,38,32,152,110,32],[157,38,32,152,110,32],"6150398",[159,36,32,160,161,32],"6148430","other\u002Fneutral\u002Fnone","gingerlime",[87,30,31,163,88,32],"project\u002Fpositive\u002Fidea",[141,30,32,165,11,38],"maker\u002Fpositive\u002Fnone",[133,146,30,150,134,32],[58,31,31,163,59,32],[50,31,32,169,11,38],"project\u002Fneutral\u002Fdesign",[171,31,32,152,172,32],"6148813","coderaptor",[174,31,32,160,59,32],"6148978",[83,176,31,154,84,32],6,[178,176,32,165,11,38],"6148696",[180,137,30,181,182,32],"6149342","project\u002Fneutral\u002Fidea","stretchwithme",[184,137,32,181,11,38],"6149371",[186,33,30,181,187,32],"6148666","baxter001",[189,33,32,181,11,38],"6148688",[191,192,32,160,193,32],"6148851",9,"rip747",[101,195,30,150,102,32],10,[197,195,32,163,11,38],"6148223",[],[200,205,210,215,220,225],{"id":201,"name":202,"points":203,"category":204},"6169040","Gmail",158,"languages",{"id":206,"name":207,"points":208,"category":209},"6159835","Distributed Homomorphic Encryption Adder",104,"security_privacy",{"id":211,"name":212,"points":213,"category":214},"6146665","google-drive-ocamlfuse",86,"infrastructure",{"id":216,"name":217,"points":218,"category":219},"6161236","Temper",53,"web_saas",{"id":221,"name":222,"points":223,"category":224},"6165913","adventureplaybook.com",47,"creative",{"id":226,"name":227,"points":228,"category":229},"6148672","Thyself.io",45,"productivity",false,"v2",{"id":233,"name":5,"line":6,"ai":230,"cat":19,"year":13,"points":14,"comments":15,"rec":27,"s":234,"top":15,"kw":235,"maker":11,"domain":10,"tier":18,"attempts":32,"strip":236,"url":9,"mix":237,"praise":78,"objection":-1,"sub":20},6148137,0.27,[23,24,25,26],"3000005035000503030030",[30,31,32,32],1793990896774]