Giter Site home page Giter Site logo

vargrind's Introduction

vargrind

Variable shadowing tool - Tracks data about variables (frequency of use, etc) during program execution

Goals

bolded = important

  • Provide shadow states (SS) for all variables in the program (Shadow state - information describing the various aspect of various variables)
    • Information Proper

      • Name
      • Type
      • Parent scope (the name of the function that defined it)
      • Special descriptors (const, volatile, etc)
      • References in code?
      • Lifetime (from declaration to deletion/program exit)
      • Location (In memory)
    • Number of uses

      • Total (Inside of the whole program)
      • Scope (Per scope)
    • Users (functions/operations which used the variable)

      • All (Logged all uses of the variable, program wide or scope specific)
      • Last
      • Most frequent
    • Changes (Variable's value change)

      • History
      • Current value
      • Previous value
      • Instigator (which function/operation changed it)
  • Output SS info
    • To terminal
    • To external logs/files (export)
  • Support complex data types (struct, class)
    • Shallow analysis mode (Treat complex data types as closed packages)
    • Deep analysis mode (Break complex types down into simple types and analyze each one as a separate variable)
      • Shadow attribute's parent class/struct
  • Post-completion optimizations

Prerequisites

In order to use Vargrind, one must have Valgrind source code cloned. Info about cloing Valgrind code can be found here: https://valgrind.org/downloads/repository.html

Installation

  1. Place the repository within your Valgrind installation directory
  2. Navigate to the repository folder
  3. Run the following command: ./SetupVargrind.sh

Troubles while installing

If the user encounters some compilation issues, it is recommended to recursively delete whole valgrind directory and start the installation again.

As a prerequisite, user shall have the autotools and automake installed in order to build the project.

Running the tool

Usage: valgrind --tool=vargrind --read-var-info=yes ./program_name

Copyright

Copyright (c) 2023 Continental AG and subsidiaries. All rights reserved.

This project is licensed under the GNU GENERAL PUBLIC LICENSE Version 2, see the LICENSE.txt file for details.

vargrind's People

Contributors

filiptodorovic avatar

Stargazers

Andrea Ravalli avatar

Watchers

 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.