I've got a command line script that is running an array() of files through a loop, and using the file name as an argument to call a method on a helper object.
Each run through the script, PHP's memory_get_usage reports a larger and larger number
53294264
57019624
61374624
65699176
70230600
75157152
79900392
84630472
89359264
94300016
1...
In C++ it is fairly simple to display the actual value of a pointer to an object. For example:
// hope this makes sense: (please edit if not)
void* p = New CSomething();
cout << p;
Is there a way to do something like this in .NET?
The value of doing this would/could only be educational, e.g. for purposes of demonstration as in displa...
Are there any C APIs for fetching free memory, swap memory consumption and to fetch file handle count similar to statvfs for file system information instead of directly parsing the /proc file system?
...
So I installed my app on my ipad and it crashes due to a memory issue. I figured this was because I'm using really big image files so I went back and reduced them all and essentially cut out about 75% of their size by resizing them and then using PNGCrush.
Now, as for running the program, if I have a background image for each of my 4 i...
Hi guys, I'm new to iphone and objective-c development and want to ask if Clang Static Analyzer is enough for getting rid of memory leaks? I personally found the xcode "Leaks" tool rather difficult to use, besides I've seen some articles, where it reads that it will always show memory leaks, even if there are no any real leaks.
If I don...
Environment.WorkingSet incorrectly reports the memory usage for a web site that runs on Windows 2003 Server.(OS Vers: Microsoft Windows NT 5.2.3790 Service Pack 2, .NET Vers: 2.0.50727.3607)
It reports memory as Working Set(Physical Mem.): 1952 MB (2047468061).
Same web site runs locally on Windows Vista with a Working Set(Physical Mem...
Hi Forum
I have an app that stacks quite a nice amount of views on top of each other.
At some point I receive a Memory warning level2 (which is kind of expected).
The thing is, when I run Instruments, I don't have any memory leaks and the app takes up something like 9-10MBs... which is not that much, I'd say?
Question is: how much me...
Hi,
I'm looking for a way to profile my openMPI program in C, i'm using openMPI 1.3 with Linux Ubuntu 9.10 and my programs are run under a Intel Duo T1600.
what I want in profile is cache-misses, memory usage and execution time in any part of the program.
thanks for reply
...
Is there any way to profile the mathkernel memory usage (down to individual variables) other than paying $$$ for their Eclipse plugin (mathematica workbench, iirc)?
Right now I finish execution of a program that takes multiple GB's of ram, but the only things that are stored should be ~50MB of data at most, yet mathkernel.exe tends to h...
If givin some situation that you can do a loop of a certain event or function that needed to be solved using loops, where you can achieve these by any kind of loop. How can we determine the difference between each loops that can be used based on their speed, efficiency, and memory usage? Like for example, you have these loops
for(int...
Hello. How many kbytes use your site on Zend Framework? and what size is normal...?
// using
memory_get_peak_usage(true) / 1024;
...
What is the amount of memory an app can take before getting kicked by iOS?
Does the amount of memory depends on the device version?
I have developed an app which is using 30+ mb and its getting kicked on iPhone 2g. Can it work on iPhone 4 or 3GS?
...
Environment.WorkingSet returns the working set incorrectly for my asp.net application which is the only application in its application pool.
On a Windows 2003 Server SP2 with 3GBs of Ram which is a VMWare Virtual Machine, it reports working set as 2.047.468.061 bytes(1952MBs) and Process.WorkingSet value is 75.563.008 bytes(72MBs).
• M...
Hi, I know that probably it's a good practice to release appdelegate's ivars in its dealloc method, but practically, does it makes any sence?
As I understand the appdelegate of an iPhone app will live in memory while the application is running and all memory will be freed anyway when it's closed.
Thank you
...
I want to monitor memory usage when running a program in perl, so that if the memory used by the current program is more than a threshold, I apply approach A, otherwise, apply approach B.
Anyone has any idea?
...
How do I find out the memory size of a Python data structure? I'm looking for something like:
sizeof({1:'hello', 2:'world'})
It is great if it counts every thing recursively. But even a basic non-recursive result helps. Basically I want to get a sense of various implementation options like tuple v.s. list v.s. class in terms of memory...
I have a script when ran consumes 17mb of memory (logged using memory_get_peak_usage()).
Script is ran 1 million times per day.
Total daily memory consumption: 17 million mb
86400 seconds in a day.
17000000 / 86400 = 196.76
Assumption: Running this script 1 million times each day will require at least 196.76 dedicated memory.
Is my ...
When I run my Flex application in Flash Builder's Profiler everything seems to be fine. No memory leaks, but apparently it happends somewhere because Firefox memory and System.totalMemory just keeps increasing until Firefox crashes.
Anything I can do to prevent that? I'm guessing it has to do with loading of images since I am loading a ...
I'm workin on a script that list all images in one directory and then resize and save in another directory.
In my shared server, I receive this message:
Allowed memory size of 67108864 bytes exhausted (tried to allocate 600 bytes) in...
The question is: If PHP can free the memory after each image creation using image_destroy(), why t...
Hey all,
I'm wondering if there is a simple command or instruction in C#/.NET and/or Visual Studio that can tell me how much memory an individual object is taking up? I have a sneaking suspicion that the sizeof() operator is going to lie to me ... am I justified in this belief?
There is a somewhat related question here, but no definit...