News for hackers. Stuff that matters.

cyrusand

Thanks! There's a link to a live demo in the README, after the embedded D3.js bundle you'll find the actual graph code. Or you can just take a look at: https://github.com/cyrus-and/chrome-page-graph/blob/master/e...
Re:Mother Teresa Declared Saint by Pope Francis on Sunday September 04, 2016 @09:22AM (#12424190)
[-Hacker-]{+Pope+} News
Re:Show HN: Chrome Remote Debugging Protocol interface on Monday August 29, 2016 @03:46PM (#12384692)
I see, well I've never performed any benchmark but it's quite possible that an ad hoc headless browser performs better for what concerns repeated tests. On the other hand, in this case you're instrumenting a real (really employed by the final user) browser. Possibly things will improve with this new headless mode for Chrome.

In any case this JavaScript module should not introduce any performance degradation, but if it does and you happen to give it a try in the future, feel free to open an issue.

Re:Show HN: Chrome Remote Debugging Protocol interface on Monday August 29, 2016 @11:43AM (#12382634)
Actually I didn't notice such thing when I used it extensively around 2013 for instrumenting some page loads. Which part was slow in your experience?
Re:Is this prime? on Tuesday March 08, 2016 @12:03PM (#11246561)
Or just:

    setInterval(function() {game.check(is_prime(game.current_n) === 'prime')}, 0);
Re:GDB Dashboard on Sunday September 13, 2015 @07:43PM (#10213145)
Thanks! This is a good advice, I'll surely do it, if it will ever be enough demand.
Re:GDB Dashboard on Sunday September 13, 2015 @07:33PM (#10213125)
Glad to hear that! I'm the guy who wrote that thing. You can change the syntax with the built-in GDB command `set disassembly-flavor intel`.
Re:Gdb-dashboard on Saturday September 12, 2015 @12:18PM (#10208453)
You can simply disable it by default with `dashboard -enabled off` in, say, `~/.gdbinit.d/my-init` then just `dashboard` to show it on demand.
Yes, including "prof.h" is enough, but you can try using different events, by default Prof uses `PERF_COUNT_HW_REF_CPU_CYCLES`. For example try defining before #include "prof.h":

#define PROF_EVENT_LIST PROF_EVENT_HW(CPU_CYCLES)

or

#define PROF_EVENT_LIST PROF_EVENT_SW(CPU_CLOCK)

Which kernel version are you running? Are you running this from a virtual machine?

Feel free to open an issue (https://github.com/cyrus-and/prof/issues) with these information if you can't manage to make it work.

Ask HN: How “technical” Is a Technical Solutions Engineer Position at Google?

I've been rejected for an SRE position after the on-site step because of one particular interview. The others did succeed according to my recruiter, who offered to contact me again in one year for applying for the same position (I guess this is how these things work); I replied: "Yes, why not?", I've no rush at the moment.After some weeks another recruiter reached me by email saying that he...

( Read More... | 2 comments | 9 points | on HN )
Re:Tfman – textual file manager on Tuesday January 20, 2015 @05:18AM (#8916247)
alias dired='emacs -Q -nw .'