Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
*.pidb
*.userprefs
*.app
*.pdb
*.user
*.suo
Makefile
Makefile.in
heap-shot-gui
Expand Down
10 changes: 6 additions & 4 deletions HeapShot.Gui.Widgets/HeapShot.Gui.Widgets.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -9,20 +9,22 @@
<OutputType>Library</OutputType>
<RootNamespace>HeapShot.Gui.Widgets</RootNamespace>
<AssemblyName>HeapShot.Gui.Widgets</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>.</OutputPath>
<OutputPath>..\bin\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<Execution>
<Execution clr-version="Net_2_0" />
</Execution>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
Expand Down Expand Up @@ -91,4 +93,4 @@
</Properties>
</MonoDevelop>
</ProjectExtensions>
</Project>
</Project>
7 changes: 4 additions & 3 deletions HeapShot.Gui/HeapShot.Gui.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -15,14 +15,15 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>.</OutputPath>
<OutputPath>..\bin\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<Execution>
<Execution clr-version="Net_2_0" />
</Execution>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
Expand Down Expand Up @@ -107,4 +108,4 @@
</Properties>
</MonoDevelop>
</ProjectExtensions>
</Project>
</Project>
11 changes: 7 additions & 4 deletions HeapShot.Reader/HeapShot.Reader.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -8,22 +8,25 @@
<ProjectGuid>{B3DF617E-A397-426C-847B-5D3DCEB57E51}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>HeapShot.Reader</RootNamespace>
<ApplicationIcon>.</ApplicationIcon>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyName>HeapShot.Reader</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>.</OutputPath>
<OutputPath>..\bin\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<Execution>
<Execution clr-version="Net_2_0" />
</Execution>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
Expand Down
7 changes: 4 additions & 3 deletions HeapShot/HeapShot.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand All @@ -14,13 +14,14 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>.</OutputPath>
<OutputPath>..\bin\</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<Execution>
<Execution clr-version="Net_2_0" />
</Execution>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
Expand Down Expand Up @@ -62,4 +63,4 @@
</Properties>
</MonoDevelop>
</ProjectExtensions>
</Project>
</Project>
15 changes: 13 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Enabling HeapShot
To use HeapShot, you must run the application to be examined
with the following command line:

mono --profile=heap-shot MyProgram.exe
mono --profile=log:heapshot MyProgram.exe

This activates the `heap-shot' profiler for your application.

Expand Down Expand Up @@ -107,7 +107,7 @@ Using the Command Line HeapShot
to a Mono process that has been started with the
--profile=heap-shot command line option:

mono --profile=heap-shot MyProgram.exe
mono --profile=log:heapshot MyProgram.exe

And on a separate window you type:

Expand Down Expand Up @@ -144,3 +144,14 @@ Creating a Mac app bundle
=========================

Just run "make mac-app"

Compiling and Running in Windows
================================

You can compile HeapShot with Microsoft Visual Studio 2012 (other versions might work as well) and also run HeapShot on a Windows system.

You will need an installation of Mono and GtkSharp. This can be obtained from installing Xamarin Studio, or "Mono for Windows, Gtk#, and XSP" from http://www.go-mono.com/mono-downloads/download.html.

Open heap-shot.sln in Visual Studio. Build HeapShot.Gui.

If you get errors pertaining to missing references to atk-sharp, gdk-sharp etc., then you will need to add a Reference Path. To do this, open the project properties for HeapShot.Gui.Widgets and select "Reference Paths". Add the path "C:\Program Files (x86)\GtkSharp\2.12\lib\gtk-sharp-2.0" or wherever these DLLs are on your system. Build the HeapShot.Gui.Widgets project. It should compile without error. You can confirm that the References view doesn't show any yellow exclamation mark glyphs. You can then proceed with building HeapShot.Gui successfully.