From: fiza khalid on 7 Jul 2010 12:38 please tell me if i can check how much system memory is consumed while doing the hash calculation of image.by which method i can do that without using Whos.
From: kk KKsingh on 7 Jul 2010 12:50 "fiza khalid" <princess.2050(a)hotmail.com> wrote in message <i12ahe$eu$1(a)fred.mathworks.com>... > please tell me if i can check how much system memory is consumed while doing the hash calculation of image.by which method i can do that without using Whos. Which operating system you are using matlab with
From: Walter Roberson on 7 Jul 2010 14:48 fiza khalid wrote: > please tell me if i can check how much system memory is consumed while > doing the hash calculation of image.by which method i can do that > without using Whos. >> tic;sum(1:1000);toc Elapsed time is 0.000040 seconds. >> tic;sum(1:1000);toc Elapsed time is 0.000039 seconds. >> tic;sum(1:1000);toc Elapsed time is 0.000044 seconds. >> tic;sum(1:1000);toc Elapsed time is 0.000037 seconds. >> tic;sum(1:1000);toc Elapsed time is 0.000041 seconds. Given the above runs, can you define how much system _time_ is consumed to run the sum? Would you take the minimum time, the maximum time, the mean time, the median time? And if the numbers had not happened to be sequential, would that change the time? If there is a inf in the numbers, would that change the time? If there is a nan in the numbers, would that change the time? Now taking into account that Matlab can share variables, that the Matlab optimizer is morally entitled to delete variables that it can prove are no longer required, and that Matlab can reuse space from a cleared variable, then how would you _define_ "how much system memory is consumed" while running something? I think you will find that there is no good definition for the quantity you believe you wish to measure. Especially if Java is being called to do some of the work.
|
Pages: 1 Prev: Opinions on 'resample' function? Next: Initial Output of Merge Bloc when fed by buses |