Code Monkey home page Code Monkey logo

callgrind_coc's Introduction

Callgrind collect-openclose

overview

Callgrind with a simple patch, add option --collect-openclose.

--collect-openclose is to counting Ir between first time opening testcase and last time closing output file.

It is used in online judge system, we use callgrind to measuring algorithm performance (use cpu instruction).

--collect-openclose option can avoid to counting too much cost at VM initialization(ex. jvm), because it has nothing to do with algorithm performance.

Installation

downloading

git clone https://github.com/u1240976/callgrind_coc
cd callgrind_coc
git submodule init
git submodule update

building step

  • preparation

    We need autotools, GNU make, and gcc to build valgrind.

    example in centos7:

    yum install autoconf
    yum install automake
    yum install gcc-c++
    

building step is same as valgrind.

refer to build valgrind tool:

./autogen.sh
./configure --prefix=`pwd`/inst
make
make install

The executable is inst/bin/valgrind.

testing

see cg_patch_test/testing.sh.

build test code: make

run test code: ./testing.sh

details

new options

  • --collect-openclose=<yes|no>
    • open functionality of this patch.
  • [TODO] --collect-openfile=<filename>
  • [TODO] --collect-closefile=<filename>

design

To Be Completed

  • patched source: callgrind/: main.c, clo.c, global.h
  • test code: cg_patch_test/

callgrind_coc's People

Contributors

cwshu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.