mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-28 18:08:29 +02:00
* disbal all code using MemAvail for Delphi reported by Kovacs Attila Zoltan
This commit is contained in:
parent
e0328653f1
commit
b8080d2b0f
@ -448,19 +448,25 @@ unit cobjects;
|
|||||||
constructor tmemdebug.init(const s:string);
|
constructor tmemdebug.init(const s:string);
|
||||||
begin
|
begin
|
||||||
infostr:=s;
|
infostr:=s;
|
||||||
|
{$ifdef Delphi}
|
||||||
|
startmem:=0;
|
||||||
|
{$else}
|
||||||
startmem:=memavail;
|
startmem:=memavail;
|
||||||
|
{$endif Delphi}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure tmemdebug.show;
|
procedure tmemdebug.show;
|
||||||
var
|
var
|
||||||
l : longint;
|
l : longint;
|
||||||
begin
|
begin
|
||||||
|
{$ifndef Delphi}
|
||||||
write('memory [',infostr,'] ');
|
write('memory [',infostr,'] ');
|
||||||
l:=memavail;
|
l:=memavail;
|
||||||
if l>startmem then
|
if l>startmem then
|
||||||
writeln(l-startmem,' released')
|
writeln(l-startmem,' released')
|
||||||
else
|
else
|
||||||
writeln(startmem-l,' allocated');
|
writeln(startmem-l,' allocated');
|
||||||
|
{$endif Delphi}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor tmemdebug.done;
|
destructor tmemdebug.done;
|
||||||
@ -2395,7 +2401,10 @@ end;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.52 2000-02-09 13:22:50 peter
|
Revision 1.53 2000-05-11 09:29:01 pierre
|
||||||
|
* disbal all code using MemAvail for Delphi reported by Kovacs Attila Zoltan
|
||||||
|
|
||||||
|
Revision 1.52 2000/02/09 13:22:50 peter
|
||||||
* log truncated
|
* log truncated
|
||||||
|
|
||||||
Revision 1.51 2000/01/11 17:16:04 jonas
|
Revision 1.51 2000/01/11 17:16:04 jonas
|
||||||
|
Loading…
Reference in New Issue
Block a user