COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Memory check

• Email
• Follow

```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.
```
 0

See related articles to this posting

```"fiza khalid" <princess.2050@hotmail.com> wrote in message <i12ahe\$eu\$1@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
```
 0

```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.
```
 0
Reply roberson (2979) 7/7/2010 6:48:34 PM

2 Replies
292 Views

Similar Articles

12/6/2013 12:35:32 AM
page loaded in 36852 ms. (0)

Similar Artilces:

check the VI
Hi, Check this Vi with FMS&nbsp;Demo C&nbsp;code Application.zip: http://forums.ni.com/attachments/ni/170/219636/1/Application.zip Padmavathi.B wrote: Check this Vi ... OK, I "checked"&nbsp;your VI&nbsp;and concluded that it is not very good. It is inefficient, confusing, and most likely very buggy. Your use of oversized diagrams and stacked sequence structures make the code very hard to read. Using proper dataflow, you probaby don't even need any sequence structures and globals. You seem to exclusively use globals as a substitute for variables in text based programs (<a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=112401&amp;query.id=101083#M112401" target="_blank">See this discussion for details</a>). More specifically: Frame 0: - You read the 0th column twice using index array. It is sufficient to read it once, then branch the wire. - You can use a resizeable index array to read the three elements on the right. - It is not clear why you push them into&nbsp;global varaibles. Are they needed elsewhere? If you only use them in this program it would be sufficient to wire

Check it out!
One of the webs newest and hottest opportunities. Besides making a residual income, you can meet people through chat and forums, advertize your business, and participate in exciting contests. Go to www.residulizer.com and find out what everyone is talking about! --- MAF Anti-Spam ID: 20050121132653G4k9TuI4

check exception
I have a log file, i need a script to check log file every 15mins and if there is "Exception - system error" more than once in that given mins. The output should be timestamp with "Exception - system error" On 10/31/2012 11:25 AM, raghuaussies wrote: > I have a log file, i need a script to check log file every 15mins and if there is "Exception - system error" more than once in that given mins. The output should be timestamp with "Exception - system error" > > yes, we know. you told us yesterday. On 2012-10-31, raghuaussies <raghuaussies@gmail.com> wrote: > I have a log file, i need a script to check log file every 15mins and if there is "Exception - system error" more than once in that given mins. The output should be timestamp with "Exception - system error" If you post the code you have already written, and describe the actual difficulty, someone might be able to help you fix it. It's astronomically unlikely that someone will actually write your code for you, though. --keith -- kkeller-usenet@wombat.san-francisco.ca.us (try just my userid to email me) AOLSFAQ=http

Check whether a variable is defined
; >> For other variable types, you can't tell. They are always initialized by >> VB to 0, False, "", or Nothing. > > In fact I'm speaking about the TreeView.SelectedItem property. If it's > not defined, nothing is selected in the TreeView. > How can I find out whether something is selected in a treeview? > > Thanks! Indeed, tvwFastElec.SelectedItem equals nothing (verified it using a watch). However when I check for it : If (tvwFastElec.SelectedItem = Nothing) ... I get an "Invalid use of Object...." Any ideas? Thanks! Bart De Meester wrote: > > Indeed, tvwFastElec.SelectedItem equals nothing (verified it using a > watch). However when I check for it : If (tvwFastElec.SelectedItem = > Nothing) ... I get an "Invalid use of Object...." Try: If tvwFastElec.SelectedItem Is Nothing Then -- Jim Mack MicroDexterity Inc www.microdexterity.com "Jim Mack" <jmack@mdxi.nospam.com> wrote in message news:5qSdnQsmOq8vEpPfRVn-qQ@comcast.com... | Bart De Meester wrote: | > | > Indeed, tvwFastElec.SelectedItem equals nothing (verified it using a | >

Check for existence (style question)
I would like to test, whether a directory mydir contains at least one file which has abc in its name. This is one way to do it on Solaris (On Linux, the option used on fgrep must be -q): if { ls mydir | fgrep -s abc } then : # yes, one or more files with names containing abc exist in mydir fi But I don't like this solution. First, it is not portable between Solaris and Linux. Second, it looks to me overly complicated. Is there a nicer way this can be done entirely within bash or zsh? bash would be preferred because I'm supposed to use bash for the task, so I would need to have com

Check if a file exists
is there a way to check if a file exists using php? i want to check if a picture exists, and if not, use a picture saying that the picture couldn't be found. TIA "Matthew Robinson" a �crit le 07/01/2004 : > is there a way to check if a file exists using php? i want to check if a > picture exists, and if not, use a picture saying that the picture couldn't > be found. > > TIA use function file_exists(); -- Have you read the manual? http://www.php.net/manual/en/ thanks Matthew Robinson wrote: > is there a way to check if a file exists using php? It's quicker to look in the manual yourself than post a question here and wait for an answer. <URL:http://www.php.net/manual/en/function.file-exists.php> -- Jim Dabell On Wed, 07 Jan 2004 19:07:46 +0000, Matthew Robinson wrote: > is there a way to check if a file exists using php? i want to check if a > picture exists, and if not, use a picture saying that the picture couldn't > be found. > > TIA I've been using something along the lines of this: \$filename=(\$dbrow['hexid'] . ".jpg"); if (file_exists(\$filename)) { printf("

check unix permissions
How can I check to see if a particular file is accessible? I'd like my links to be displayed in red if they are available and to be displayed in green if they are unavailable. At the command line, I'll chmod the files when I want to make them available. Jackson wrote: > How can I check to see if a particular file is accessible? I'd like my > links to be displayed in red if they are available and to be displayed > in green if they are unavailable. At the command line, I'll chmod the > files when I want to make them available. > Have a look at is_readable and comparable functions. JW

How to check for list?
Hi, I'm somewhat new to programming (know some C) and they are having us do it in the scheme language now. I'm to write lots of procedures, one of which is to check whether an item is a list or not (there's one inbuilt in scheme but it has to be redone). Is there a quick way to do this? I guess it will be a procedure (P X) that checks if X is a list or not. I thought checking for car would work, but it doesn't. I'm getting bad syntax error. (define isthislist? (lambda x) (if null? x #f elseif ((null? ( car x)) #f) else #t) ) "Michael D." <ms2931@hotmail.com> wrote in message news:FuWdnRnPo8fVbc3cRVn-hA@comcast.com... > Hi, I'm somewhat new to programming (know some C) and they are having us do > it in the scheme language now. I'm to write lots of procedures, one of which > is to check whether an item is a list or not (there's one inbuilt in scheme > but it has to be redone). Is there a quick way to do this? I guess it will > be a procedure (P X) that checks if X is a list or not. I thought checking > for car would work, but it doesn't. I'm getting bad syntax error. > > (define isthislist? >

Reality check for Vista
http://biz.yahoo.com/hbusn/060908/090706_reality_check_vista_biz2.html Working Tech: A reality check for Vista Friday September 8, 5:37 am ET By Owen Thomas, Business 2.0 Magazine online editor Judging by the grief that Microsoft is getting over delays in the release of Windows Vista, and the buzz surrounding the price it plans to charge for the next generation operating system, you'd think we were all hankering to get our hands on this hot new piece of software. Don't believe the hype: There won't be lines around the block at midnight when Vista hits store shelves early next year, analysts say. "I don't expect anyone's going to be camping out at Best Buy waiting for this product," says Citigroup equity research analyst Brent Thill. "I think the pace of adoption will be slower than the market expects." more as usual...have at it winboys... "Jim Polaski" <jpolaski@NOync.net> wrote in message news:jpolaski-128721.17453108092006@comcast.dca.giganews.com... > http://biz.yahoo.com/hbusn/060908/090706_reality_check_vista_biz2.html > "I don't expect anyone's going to be camping out at Best Buy

Check existence of value
Hello Sas-Users, Is there a simple way (a sas function if possible...) to check if a value belongs to a column. Thanks. For example : check if the value '2' belongs to X1. check if '7' doesn't belong to X1. data table_bidon; input x1 x2 x3 x4 x5 \$; cards; 2 5 5 1161 abelien 35 6 3 1336 almeric 82 1 5 1499 aniel ; run; ash007. On Aug 4, 3:54=A0pm, ash007 <RamsamyAsh...@gmail.com> wrote: > Hello Sas-Users, > > Is there a simple way (a sas function if possible...) to check if a > value belongs to a column. Thanks. > > For example : check if the value '2' belongs to X1. check if '7' > doesn't belong to X1. > > data table_bidon; > =A0 =A0 =A0 =A0 input x1 x2 x3 x4 x5 \$; cards; > =A0 =A0 =A0 =A0 2 5 5 1161 abelien > =A0 =A0 =A0 =A0 35 6 3 1336 almeric > =A0 =A0 =A0 =A0 82 1 5 1499 aniel > =A0 =A0 =A0 =A0 ; > run; > > ash007. data in; input x1 x2 x3 x4 x5 \$; cards; 2 5 5 1161 abelien ; run; data notin; input x1 x2 x3 x4 x5 \$; cards; 7 5 5 1161 abelien ; run; /* what is in */ proc sql; select * from table_bidon