MemGraph Tool v1.1

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
Post Reply
nicodega
Posts: 5
Joined: Fri Aug 13, 2010 7:19 pm

MemGraph Tool v1.1

Post by nicodega »

Hi, I'm new to the forums, but I not to OS programming.

Yesterday I was bored and decided to check my 4 years old microkernel and OS (sartoris Microkernel), and as I did I found out I couldn't follow how memory was layed out. In order to help me do it I've created a simple application on which you can input memory ranges with names, and it'll create a memory image as the one attached.

It's really a simple application, and I won't be updating it probably, but I thought it might help other OS developers and decided to post it.

The application requires .NET Framework 2.0 to run.

Let's hope someone find's it useful.

Nico.

Version 1.1 Changes:

- You can now place one break on the memory image. A break will hide that portion of the image.
- New Center button. Will center the start address of the selected region on the drawing.
- Small Bugfixes.

Version 1.0 Changes:

- Now horizontal layout can be selected.
- Full image save has been removed.
- "Save Image" option now will save the complete memory drawing, if the upper part is visible, and memory height is bigger than the image.

Version 0.3. Changes are:

- Added scroll to the memory regions list.
- Now memory can be moved in any direction.
- You can now specify the memory region Height on the drawing.

Version 0.2. Changes are:

- Fixed anoying bugs (mostly when viewing the memory).
- Now the window can be Resized.
- Dragging the Memory image to the sides will move it.
- x64 memory values should be supported now.
- Now the clear button only clears the memory being displayed.

I've also uploaded the sources which I place on the Public domain. In case anyone wants to use them.
Attachments
MemGraph-v1.1.zip
(14.11 KiB) Downloaded 101 times
MemGraph-src.zip
(18.44 KiB) Downloaded 69 times
memGraph-h.png
Last edited by nicodega on Sun Aug 15, 2010 6:39 pm, edited 13 times in total.
User avatar
thepowersgang
Member
Member
Posts: 734
Joined: Tue Dec 25, 2007 6:03 am
Libera.chat IRC: thePowersGang
Location: Perth, Western Australia
Contact:

Re: MemGraph (don't get lost on the memory layout of your OS

Post by thepowersgang »

It looks like quite a useful tool, just needs a bit of polish.

When I tried to open it on my laptop (running at 1024x768) it didn't resize the window correctly and hence the Colour and range end controls were unusable. Also, it would be nice if it supported 64-bit addresses (it shouldn't be too hard to add those).
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
nicodega
Posts: 5
Joined: Fri Aug 13, 2010 7:19 pm

Re: MemGraph (don't get lost on the memory layout of your OS

Post by nicodega »

thepowersgang wrote:It looks like quite a useful tool, just needs a bit of polish.

When I tried to open it on my laptop (running at 1024x768) it didn't resize the window correctly and hence the Colour and range end controls were unusable. Also, it would be nice if it supported 64-bit addresses (it shouldn't be too hard to add those).
It really is an app to help me see the memory layout better, it has no resize code and probably won't have.

Maybe I'll change it to support 64bits (I should use longs instead of ints).

This is the source code, I place it on the public domain.
nicodega
Posts: 5
Joined: Fri Aug 13, 2010 7:19 pm

Re: MemGraph (don't get lost on the memory layout!) V0.2

Post by nicodega »

I've uploaded a new version.
User avatar
Karlosoft
Member
Member
Posts: 277
Joined: Thu Feb 14, 2008 10:46 am
Location: Italy
Contact:

Re: MemGraph (don't get lost on the memory layout!) V0.2

Post by Karlosoft »

Nice! Now I can say goodbye to my draws on paper ;) This will be surely better.
User avatar
Creature
Member
Member
Posts: 548
Joined: Sat Dec 27, 2008 2:34 pm
Location: Belgium

Re: MemGraph (don't get lost on the memory layout!) V0.2

Post by Creature »

Is there any license or copyright related to the 'works' we can produce with it (I assume not, but it's always nice to make sure)?

Also, a feature suggestion: Maybe you could implement a second, horizontal lay-out (for in case people want a horizontal bar rather than a vertical one). Rotating the vertical bar works, but it might be handier to have the labels horizontal as well instead of vertically 'perpendicular' to the horizontal bar.

Third note: If I press 'Add' with no values in the fields, it says "Error en campos" ;).
When the chance of succeeding is 99%, there is still a 50% chance of that success happening.
nicodega
Posts: 5
Joined: Fri Aug 13, 2010 7:19 pm

Re: MemGraph (don't get lost on the memory layout!) V0.2

Post by nicodega »

Creature wrote:Is there any license or copyright related to the 'works' we can produce with it (I assume not, but it's always nice to make sure)?

Also, a feature suggestion: Maybe you could implement a second, horizontal lay-out (for in case people want a horizontal bar rather than a vertical one). Rotating the vertical bar works, but it might be handier to have the labels horizontal as well instead of vertically 'perpendicular' to the horizontal bar.

Third note: If I press 'Add' with no values in the fields, it says "Error en campos" ;).
Haha I'm from Argentina, my native tonge is spanish :) (I've changed the error message now and uploaded the zip again).

I've also uploaded the sources, in case anyone wants to modify it.. you can do as you please with them since I'm releasing them to the public domain.

Oh and you can also do what you want with the images/files generated with the app.
tharkun
Member
Member
Posts: 51
Joined: Sat Mar 21, 2009 1:29 pm
Location: Ireland

Re: MemGraph Tool V0.3

Post by tharkun »

berkus wrote:There is no public domain in some countries, like Germany. Releasing under a non-restrictive non-sticky license like BSD, MIT X11 or BOOST license might be a better idea. JFYI.
Or Solar's PDCLib licence.
nicodega
Posts: 5
Joined: Fri Aug 13, 2010 7:19 pm

Re: MemGraph Tool V0.3

Post by nicodega »

berkus wrote:There is no public domain in some countries, like Germany. Releasing under a non-restrictive non-sticky license like BSD, MIT X11 or BOOST license might be a better idea. JFYI.
Truth is I really don't care what anyone might do with the code. It's not a tool I've developed and I'm proud of it, but a tool I developed for myself, and thought I could share.

BTW, there's a new version (this is probably the last one).
User avatar
Andr3w
Member
Member
Posts: 76
Joined: Tue Jun 09, 2009 4:09 am
Location: Somewhere

Re: MemGraph Tool V0.3

Post by Andr3w »

berkus wrote:There is no public domain in some countries, like Germany. Releasing under a non-restrictive non-sticky license like BSD, MIT X11 or BOOST license might be a better idea. JFYI.
I prefer WTFPL. It's really free :P

P.S The app is great! Thanks!
User avatar
Owen
Member
Member
Posts: 1700
Joined: Fri Jun 13, 2008 3:21 pm
Location: Cambridge, United Kingdom
Contact:

Re: MemGraph Tool V0.3

Post by Owen »

berkus wrote:There is no public domain in some countries, like Germany. Releasing under a non-restrictive non-sticky license like BSD, MIT X11 or BOOST license might be a better idea. JFYI.
Doesn't matter. He lives in a country which recognizes PD and PDs it? Its public domain.

Rule of the shorter term applies
User avatar
f2
Member
Member
Posts: 311
Joined: Mon Jun 15, 2009 10:01 am
Location: France

Re: MemGraph Tool V0.3

Post by f2 »

Hm... this is a very useful tool. Keep up the good work. If one day I write some informations about internals of my OS,
I could use this tool to describe the (complex) memory map :) .
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
Post Reply