dragonbane

Memory Space Visualization

May 23rd, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. Bottom List:
  2.  
  3. In Dolphin:
  4.  
  5. Write from-to addresses in txt file (one line per slot) (from = current address, to = next slot address)
  6. If slot has size parameter, put current address for start and end address is start address + size
  7. If slot doesnt have a size, add start address and end address (next slot address)
  8.  
  9. In VB:
  10. PictoBox is 1072,5264 (1073) pixels wide
  11. White background. White space is used/free slots < 10 kb
  12.  
  13. End address - start address to calc slot size
  14. Ignore slots < 10 kb (10000 bytes)
  15. Divide size by 10000 to get pixel width of new rectangle (red for used, blue for free space)
  16. Find last entry in the list (which is the first slot) and subtract first slot start address from the current slot start address
  17. Divide result by 10000 to find pixel at which to draw the rectangle from
  18.  
  19.  
  20. Links:
  21.  
  22. http://www.dreamincode.net/forums/topic/38159-how-to-draw-bar-chart/
  23. http://www.vb-helper.com/howto_net_color_wheel.html
  24. http://www.informit.com/articles/article.aspx?p=29477&seqNum=6
Add Comment
Please, Sign In to add comment