Giter VIP home page Giter VIP logo

mtuner's Introduction

MTuner logo

Build Status Build status License

MTuner is a C/C++ memory profiler and memory leak finder for Windows, PlayStation 4 and 3, Android and other platforms.

MTuner utilizes a novel approach to memory profiling and analysis, keeping entire time-based history of memory operations. This gives an unique insight in memory related behavior of your software by making queries over the entire data set.

While MTuner was created for profiling C/C++ applications, it is possible to profile memory for programs written in other languages as long as there is corresponding debug symbol information. Users can convert DMD CodeView/DWARF debug symbols to PDB format using cv2pdb.

MTuner screenshot

Source Code

You can get the latest source code by cloning it from github:

  git clone https://github.com/milostosic/MTuner.git 

Download

Binaries can be downloaded from releases page

Documentation

MTuner documentation can be found here.

Dependencies

MTuner uses Qt framework for user interface.

Dependencies can be obtained by cloning the following repositories:

git clone https://github.com/milostosic/build.git
git clone https://github.com/milostosic/rbase.git
git clone https://github.com/milostosic/rdebug.git
git clone https://github.com/milostosic/rmem.git
git clone https://github.com/milostosic/rqt.git
git clone https://github.com/milostosic/MTunerCmd.git
git clone https://github.com/milostosic/MTunerDLL.git
git clone https://github.com/milostosic/MTunerInject.git

DIA (Debug Interface Access) SDK - Windows only

git clone https://github.com/milostosic/DIA.git 

Build

MTuner build system is based on GENie and build in order to dramatically simplify managing build configurations and dependencies.

After cloning the repository and dependencies, here are the steps to build MTuner.

MinGW

$ cd MTuner/genie
$ genie --gcc=mingw-gcc gmake
$ cd ../../.build/windows/mingw-gcc/MTuner/projects/
$ make

MINGW environment variable must be set and point to the MinGW installation directory.
Tested with TDM64 MinGW using OpenMP package

Visual Studio

> cd MTuner/genie
> genie vs2015

Solution will be located here: {Clone root}/.build/windows/vs2015/projects/MTuner/MTuner.sln

NB: building Qt based projects with build requires additional dependencies:

Lua
Lua lfs module

Environment variables are used to locate Qt installation, example:

set QTDIR_VS2017_x86=C:\<some_path>\Qt\5.13.0\msvc2017_64 *
set QTDIR_VS2017_x64=C:\<some_path>\Qt\5.13.0\msvc2017_64

Note that Qt deprecated 32bit builds, hence both variables point to same location.

Latest release made with: Visual Studio 2017 Community edition, Qt 5.13.0 and Lua 5.1.4

Author

The author of MTuner is Milos Tosic

License (BSD 2-clause)

Copyright (c) 2019 Milos Tosic. All rights reserved.

https://github.com/milostosic/MTuner

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

   1. Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.

   2. Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 

mtuner's People

Contributors

milostosic avatar dragonmux avatar ebatut-alg avatar maksqwe avatar kurimo avatar

Stargazers

lmeeng 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.