Open GoogleCodeExporter opened 9 years ago
How did you create xxx.exe? Did you compile in debug mode or release mode?
Did you have nm_pdb and the like installed on your system?
Original comment by csilv...@gmail.com
on 12 Jan 2012 at 11:44
How did you create xxx.exe? Did you compile in debug mode or release mode?
Did you have nm_pdb and the like installed on your system?
Create xxx.exe in vs2010, debug mode, and I have compiled nm_pdb and
addr2line_pdb with vs2010.Used the same codes in vs2005, pprof works fine.
I suspect vs2010 pdb format is newer then vs2005,so I download latest dbghelp
sdk, but pprof still can't output properly result.
This is my code:
#include "stdafx.h"
#include "google/heap-profiler.h"
#include "string.h"
int _tmain(int argc, _TCHAR* argv[])
{
char * ccc = new char[1<< 20];
HeapProfilerStart( "d:/test-heapprofile" );
int * p = new int[256];
delete []p;
int * p1 = new int[1024];
int * p2 = new int[2048];
int * p3 = new int[4096];
int * p4 = new int[1000];
int * p5 = new int[2000];
//HeapProfilerDump("test");
strcpy(ccc, GetHeapProfile() );
HeapProfilerStop();
FILE * fp = fopen( "test.txt", "w+" );
fwrite( ccc, strlen(ccc), 1, fp );
fclose(fp);
return 0;
}
---------------------------------------------
link command:
/OUT:"D:\test\win32tcmalloc\Debug\win32tcmalloc.exe" /INCREMENTAL /NOLOGO
/LIBPATH:"D:\test\win32tcmalloc\Debug" "libtcmalloc_minimal-debug.lib"
"kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib"
"advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib"
"odbccp32.lib" /INCLUDE:"__tcmalloc" /MANIFEST
/ManifestFile:"Debug\win32tcmalloc.exe.intermediate.manifest" /ALLOWISOLATION
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
/PDB:"D:\test\win32tcmalloc\Debug\win32tcmalloc.pdb" /MAP /MAPINFO:EXPORTS
/SUBSYSTEM:CONSOLE /PGD:"D:\test\win32tcmalloc\Debug\win32tcmalloc.pgd"
/TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:QUEUE
-------------------------------------
compler command:
/I"D:\test\google-perftools-1.9\src" /ZI /nologo /W3 /WX- /Od /Oy- /D "WIN32"
/D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /GS
/fp:precise /Zc:wchar_t /Zc:forScope /Yu"StdAfx.h" /Fp"Debug\win32tcmalloc.pch"
/FAcs /Fa"Debug\" /Fo"Debug\" /Fd"Debug\vc100.pdb" /Gd /analyze-
/errorReport:queue
Original comment by icery...@gmail.com
on 13 Jan 2012 at 6:36
Sorry for the delay in getting back to you; for some reason I didn't notice
your response until now.
I think you may be right, this is a format change of some sort in VS2010 that
wasn't in earlier versions. I don't know anything about windows, so I'm not
really qualified to debug this. Do you have any ideas, or any leads how you
might figure out what's going on?
Original comment by csilv...@gmail.com
on 26 Jan 2012 at 1:08
I will try to resolve it, vs2010 pdb format version is pdb10 and vs2005 pdb is
pdb8,Maybe something wrong in addr2line_pdb. If I find anything about it,
I'll give you message in here.
Original comment by icery...@gmail.com
on 30 Jan 2012 at 2:27
Just curious if there are any further developments here?
Original comment by chapp...@gmail.com
on 21 Apr 2012 at 6:29
I'm not sure I understand how you managed to build heap checker for windows.
Can you elaborate ?
Original comment by alkondratenko
on 30 Aug 2013 at 1:25
Original issue reported on code.google.com by
icery...@gmail.com
on 11 Jan 2012 at 8:43