Hi,
in a project I dynamically adjust the memory usage by REDIM PRESERVE of
some multi-dimensional arrays. The complexity increases up to 3^n, n being
the number of user variables. Since the algorithms predict only an upper limit
of needed memory, which is only reached sometimes, the adaptive REDIM has
proven to be a good method.
Now I wonder if there is a way to find/measure the momentary memory
allocation compared to the maximum of available non-swapped memory?
My goal would be to inform the user when swapping to disk starts
(or has just started), then causing a considerable slow-down in execution.
Does someone know a simple method for PBCC (+ Win32Api)?
Regards, Gert.
in a project I dynamically adjust the memory usage by REDIM PRESERVE of
some multi-dimensional arrays. The complexity increases up to 3^n, n being
the number of user variables. Since the algorithms predict only an upper limit
of needed memory, which is only reached sometimes, the adaptive REDIM has
proven to be a good method.
Now I wonder if there is a way to find/measure the momentary memory
allocation compared to the maximum of available non-swapped memory?
My goal would be to inform the user when swapping to disk starts
(or has just started), then causing a considerable slow-down in execution.
Does someone know a simple method for PBCC (+ Win32Api)?
Regards, Gert.
Comment