Visualizing                               Objects and                              Memory Usage        I n g .            ...
The context                                   2Saturday, November 13, 2010
The context                                   2Saturday, November 13, 2010
The context                                   2Saturday, November 13, 2010
The context                                   2Saturday, November 13, 2010
The context                                   2Saturday, November 13, 2010
1st step: UNDERSTAND.                     To understand: VISUALIZATIONS.                                      3Saturday, N...
Problem                        How to visualize objects and memory usage.                        Special treatment for cla...
Regarding related work...                                 no one solves the problem of                              taking...
Our solution                        Trace objects usage.                        Use DistributionMaps to visualize the resu...
Moose is a platform for                              software and data analysis                                          7...
DistributionMap                       “Distribution Map visualizes parts of a system                       and shows how p...
JBOSS example                                    9Saturday, November 13, 2010
Used Object Maps                                Distribution Maps that take into                               account obj...
How to use them?                    1.Start the analysis.                    2.Run the scenario to analyze.               ...
SHOWTIME                                 12Saturday, November 13, 2010
Tracing Objects                                   Usage                        Usage bit in the Object Header (Virtual    ...
when an objects is                         marked as used?                        Quick answer: when it receives a message...
Showtime 2                                  15Saturday, November 13, 2010
Possible uses                        When building minimal images.                        Virtual memory implementations. ...
conclusions and                                future work                      Use Distribution Maps and distinguish     ...
Thanks!                              Mariano Martinez Peck                              marianopeck@gmail.comSaturday, Nov...
Upcoming SlideShare
Loading in …5
×

Visualizing Objects and Memory Usage

2,828 views

Published on

Presentation of the research paper entitled "Visualizing Objects and Memory Usage" in Smalltalks 2010, Concepción del Uruguay, Argentina.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,828
On SlideShare
0
From Embeds
0
Number of Embeds
43
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Visualizing Objects and Memory Usage

  1. 1. Visualizing Objects and Memory Usage I n g . m a r i a n o m a rt i n e z p e c k m a r i a n o p e c k @ g m a i l . c o m 1Saturday, November 13, 2010
  2. 2. The context 2Saturday, November 13, 2010
  3. 3. The context 2Saturday, November 13, 2010
  4. 4. The context 2Saturday, November 13, 2010
  5. 5. The context 2Saturday, November 13, 2010
  6. 6. The context 2Saturday, November 13, 2010
  7. 7. 1st step: UNDERSTAND. To understand: VISUALIZATIONS. 3Saturday, November 13, 2010
  8. 8. Problem How to visualize objects and memory usage. Special treatment for classes, methods and packages. Take into account objects usage. 4Saturday, November 13, 2010
  9. 9. Regarding related work... no one solves the problem of taking into account objects usage. 5Saturday, November 13, 2010
  10. 10. Our solution Trace objects usage. Use DistributionMaps to visualize the results. 6Saturday, November 13, 2010
  11. 11. Moose is a platform for software and data analysis 7Saturday, November 13, 2010
  12. 12. DistributionMap “Distribution Map visualizes parts of a system and shows how properties of the part elements spread over the initial parts. ” part 1 part 2 part 3 Property1 Property2 Property3 part 5 part 4 Element Property4 Container 8Saturday, November 13, 2010
  13. 13. JBOSS example 9Saturday, November 13, 2010
  14. 14. Used Object Maps Distribution Maps that take into account objects and memory usage 10Saturday, November 13, 2010
  15. 15. How to use them? 1.Start the analysis. 2.Run the scenario to analyze. 3.Stop the analysis. 4.Visualize using DistributionMaps. 11Saturday, November 13, 2010
  16. 16. SHOWTIME 12Saturday, November 13, 2010
  17. 17. Tracing Objects Usage Usage bit in the Object Header (Virtual Machine). Define “when an objects is marked as used?”. Modify VM to mark objects when used. 13Saturday, November 13, 2010
  18. 18. when an objects is marked as used? Quick answer: when it receives a message. When the VM directly use it. When used by special VM bytecodes (#class, #==, etc). 14Saturday, November 13, 2010
  19. 19. Showtime 2 15Saturday, November 13, 2010
  20. 20. Possible uses When building minimal images. Virtual memory implementations. Detect bad smells or possible overuse of memory. Detect opportunities of refactorings. 16Saturday, November 13, 2010
  21. 21. conclusions and future work Use Distribution Maps and distinguish between used and unused instances. Useful to analyze the system and to know which objects are used in different scenarios. DistributionMap comparator.Saturday, November 13, 2010
  22. 22. Thanks! Mariano Martinez Peck marianopeck@gmail.comSaturday, November 13, 2010

×