Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
19 June, 2013, 10:18:36 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Memory Usage for the 89 -  (Read 638 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« on: 09 July, 2011, 02:39:44 »
+1

So, after suddenly finding myself without a project to work on the other day, I resolved to come up with some relatively simple calc utility I could actually code, and then code it.

And I came up with this: Memory Usage, a 68k C program which provides nicely formatted information about how much space is used up on the system.

The AMS's MEM dialog tells you how much space is being used for different variable types and how much is free. I, however, was interested in a folder-by-folder breakdown, among other things.

The attached images summarize the current features pretty well. First, when you run the program, there are three options: "general memory info", "flash app info", and "file/folder info". The general memory info first provides usage statistics about the RAM and the Flash: mostly what you can already get through the AMS's MEM menu. However, it also shows how much memory would be freed through Garbage Collect.

The files/folders mem screen shows a list of all folders and their sizes ordered by size. Selecting a folder opens up a sub menu displaying the number of unarchived bytes and the number of archived bytes. At this point, if you select "All", it shows you an ordered list of all files in that folder; selecting "Archived" or "Unarchived" displays only archived or unarchived programs in that folder, again sorted by size.

Currently, selecting a file does nothing, just exits.

The flash app screen, like the files and folders screen, shows an ordered list of folders by size. The name of an app might be cut off, but selecting the app will display the full name, the application ID (which is a handle to some info about the app in memory), and the size in a little popup window.

It should be compatible with the Titanium, though it cannot run on anything below AMS 1.x.


* MemUsage.png (1.62 KB, 160x100 - viewed 150 times.)

* FlashMemInfo.png (1.8 KB, 160x100 - viewed 223 times.)

* MainDetailedMem.png (1.71 KB, 160x100 - viewed 231 times.)

* AllMain.png (2.32 KB, 160x100 - viewed 232 times.)

* MemUsage.png (1.8 KB, 160x100 - viewed 195 times.)

* AppList.png (2.37 KB, 160x100 - viewed 190 times.)

* AppPopup.png (1.72 KB, 160x100 - viewed 194 times.)
* memusage.zip (19.43 KB - downloaded 44 times.)
« Last Edit: 28 July, 2011, 21:29:02 by TC01 » Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #1 on: 14 July, 2011, 03:45:06 »
0

After a bit more debugging and coding, here's a real release of this program. I've fixed all the weirdness that was occurring on my 89 (and improved memory usage while I was at it).

Also, with debrouxl's assistance, I added a menu for displaying Flash applications. It works much the same as the folder\file system, but selecting a flash application brings up a little popup giving the full name (the name has to get cut off for size in some places), the application ID on your system, and the size.

Hopefully, even though the 68k community is dead, someone finds this potentially useful...

And yes, I know I just made a link to an attachment in the post right above this one, but I figured it might be lost in all the screenshots.

EDIT: removed v0.2
« Last Edit: 28 July, 2011, 21:34:15 by TC01 » Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
Lionel Debroux
LV10 31337 u53r (Next: 2000)
**********
Offline Offline

Gender: Male
Last Login: Today at 09:24:00
Date Registered: 17 December, 2009, 09:37:25
Location: France
Posts: 1916

Total Post Ratings: +215

View Profile WWW
« Reply #2 on: 14 July, 2011, 14:47:23 »
0

Nifty little utility indeed Smiley
Logged

Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #3 on: 28 July, 2011, 21:32:38 »
0

I've released version 0.3.

As bugs were still happening on my 89, I went back and fixed them. (The fix entailed changing the way the program determined the size of files). The new way is more optimized, and bug free. Smiley

I also added an option to garbage collect to the main menu (because the 89 doesn't let you garbage collect manually), and then added information about whether a flash app is "marked for delete" to it's info page. (You currently can't delete flash apps from this interface, so it should always read "0").
Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
Jim Bauwens
Lua! Nspire! Linux!
Editor
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Yesterday at 22:29:56
Date Registered: 28 February, 2011, 22:32:12
Location: Belgium
Posts: 1736


Total Post Ratings: +180

View Profile WWW
« Reply #4 on: 28 July, 2011, 21:48:13 »
0

Nice, should put this on one of my calcs when I have some time Smiley
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.2 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.