タグ

debugとLinuxに関するkhikerのブックマーク (3)

  • How to debug C and C++ programs with rr | Red Hat Developer

    The common theme in many time-travel movies is to go back in time to find out what went wrong and fix it. Developers also have that desire to go back in time and find why the code broke and fix it. But, often, that crucial step where everything went wrong happened long ago, and the information is no longer available. The rr project lets programmers examine the entire life of a C or C++ program run

    How to debug C and C++ programs with rr | Red Hat Developer
  • 2009-06-27

    オリコンが10〜40代男女を対象に『夢や目標を達成させるために必要なもの』について調査を行ったところ、性別・世代別の全ての部門で【自分自身の強い信念・精神力】が1位となった。 目標達成に必要なもの、男性は「運」女性は「行動力」 カッコ良すぎわろた。その通りだと思うけどね。 ただ、男女別に見ると男性は【運】が2位(11.3%)なのに対し、女性は【行動力】が2位(11.4%)で、女性の【運】は5位に。男女間の感覚の違いが見られた。 「女は行動力!」ってやつですね、わかります。男も行動力だと思いますけどね。運はあるけどさ、運を最小化するように手を回すのがゲームってもんじゃないですかね? ちなみにForce of Willのコストは(3)(青)(青)、Mind Over Matterのコストは(2)(青)(青)(青)(青)である。どちらも簡単には発揮できない。 AppInit_DLLsとはHKE

    2009-06-27
  • C言語: 実行時間測定の方法

    C言語において実行時間を測定する為の方法はいくつかある。gettimeofday, clock, getrusage, timesを利用する方法である。ここではこれらの方法について検証してみる。これは2005/12/30時点での情報であり、古い亊が考えられるので注意して頂きたい。さらに、内容のほとんどはmanを移しただけなので、正確な情報を得るためにそれぞれの関数のmanを見ることを強く推奨する。 System: Linux 2.6.12 glibc: glibc 2.3.5-1ubuntu12 gettimeofdayを使用する方法 通常はこの関数を使用するのをお勧めする。 gettimeofdayはSVr4, BSD 4.3準拠である。返り値の型はsys/time.hに定義されるstruct timevalで有る。

    khiker
    khiker 2009/05/20
    時間計測
  • 1