mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 04:19:09 +02:00
MG: aded memcheck diff
git-svn-id: trunk@3332 -
This commit is contained in:
parent
a8acebb11a
commit
9e033cc12d
@ -158,10 +158,19 @@ begin
|
|||||||
QuickTrace:=true;
|
QuickTrace:=true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
const
|
||||||
|
LastWrittenGetMemCnt: longint = 0;
|
||||||
|
|
||||||
procedure CheckHeapWrtMemCnt(const txt: ansistring);
|
procedure CheckHeapWrtMemCnt(const txt: ansistring);
|
||||||
var p: pointer;
|
var
|
||||||
|
p: pointer;
|
||||||
|
CurGetMemCount, DiffGetMemCount: longint;
|
||||||
begin
|
begin
|
||||||
writeln('>>> memcheck.pp - CheckHeap2 "',txt,'" ',MemCheck_getmem_cnt);
|
CurGetMemCount:=MemCheck_getmem_cnt;
|
||||||
|
DiffGetMemCount:=CurGetMemCount-LastWrittenGetMemCnt;
|
||||||
|
LastWrittenGetMemCnt:=CurGetMemCount;
|
||||||
|
writeln('>>> memcheck.pp - CheckHeap2 "',txt,'" ',
|
||||||
|
CurGetMemCount,' +',DiffGetMemCount);
|
||||||
QuickTrace:=false;
|
QuickTrace:=false;
|
||||||
GetMem(p,4);
|
GetMem(p,4);
|
||||||
FreeMem(p);
|
FreeMem(p);
|
||||||
@ -1128,6 +1137,9 @@ finalization
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.10 2002/09/13 08:23:11 lazarus
|
||||||
|
MG: aded memcheck diff
|
||||||
|
|
||||||
Revision 1.9 2002/09/13 08:11:46 lazarus
|
Revision 1.9 2002/09/13 08:11:46 lazarus
|
||||||
MG: fixed memcheck output
|
MG: fixed memcheck output
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
{ $DEFINE IDE_VERBOSE}
|
{ $DEFINE IDE_VERBOSE}
|
||||||
|
|
||||||
{ $DEFINE IDE_MEM_CHECK}
|
{$DEFINE IDE_MEM_CHECK}
|
||||||
|
|
||||||
{ $DEFINE IDE_DEBUG}
|
{ $DEFINE IDE_DEBUG}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user