Autor Beitrag
Raptor
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 48

WIN 98 / WIN XP prof.
D 5 St. / D 3 prof.
BeitragVerfasst: Mo 21.04.03 19:17 
Hi alle zusammen,

ich hab da mal ne Frage, wie kriege ich raus wieviel Speicherplatz mein Programm verbraucht wenn´s läuft.

Unter Windows XP unter TaskManager/Prozesse zeigt er immer die gleiche Speicherauslastung an.

Egal ob
ausblenden Quelltext
1:
 x : Array [1 .. 10] of blabla;					

oder
ausblenden Quelltext
1:
 x : Array [1 .. 1000000] of blabla;					


:? :? :?

gibts da ´n Tool oder mache ich was falsch ????? :?!?:

Thanx für Hilfe

_________________
Semper aliquid haeret RAPTOR
FloSch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 129



BeitragVerfasst: Mo 21.04.03 19:43 
Hallo,

was verstehst du unter "Speicherplatz"?

Wenn du einen statischen Array erzeugst oder auch Konstanten und diese in deinem Programm nicht benutzt werden (d.h. es erfolgt kein Zugriff auf diese), dann werden diese AFAIK vom Linker ignoriert und nicht in dein Proramm mit integriert.

Grüße
Florian :roll:

//EDIT: Fehler korrigiert

_________________
Windows 200 Prof. - Debian Sarge
D5 Prof & D6 PE - Kylix 3 Professional - Free Pascal
iaby
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 21



BeitragVerfasst: Mo 21.04.03 22:30 
ich denke mal er meint den arbeitsspeicher!
und benutzen wird er die arrays auch(geh ich einfach mal von aus)

würde mich auch mal interessieren!
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Di 22.04.03 16:26 
Vielleicht mit SizeOF :lol:?

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.