Git Product home page Git Product logo

Comments (7)

jordanmontt avatar jordanmontt commented on June 21, 2024 1

Closing this as it was fixed. The profiler can load in P11

from illimani-memory-profiler.

jordanmontt avatar jordanmontt commented on June 21, 2024

Hello Martin, thanks for the feedback. Indeed it was an error on the baseline. The latest version of MethodProxies needs some changes that are available only on Pharo 12. I just released an updated the baseline to load a version of MethodProxies that works on Pharo 11 and 10, when using Pharo 11 or 10. Now everything should work. I will update the README too.

Let me know if you encounter other errors

from illimani-memory-profiler.

tinchodias avatar tinchodias commented on June 21, 2024

Thanks @jordanmontt for the fast reply! I tested again the same code snippet I included above, and got the same warning. In fact the subject of the issue should be "warning" not "error" (my mistake, I'm sorry).
Is that the code to use, or another?

from illimani-memory-profiler.

tinchodias avatar tinchodias commented on June 21, 2024

It seems there is something wrongly loaded, because I executed:

morphicPackages := RPackageOrganizer default packages select: [ :package | package name includesSubstring: 'morphic' caseSensitive: false  ].
morphicClasses := morphicPackages flatCollect: #classes as: Set.
profiler := IllimaniAllocationProfiler new
	captureAllObjects;
	objectsToIgnore: morphicClasses;
	profileFor: 5 seconds;
	yourself.
profiler open

And image deads

from illimani-memory-profiler.

jordanmontt avatar jordanmontt commented on June 21, 2024

Hello Martin,

Do you need the captureAllObjectsand the objectsToIgnore api methods? I removed them to increase the speed. I can add them again if you need them. Another thing, please use the latest version, the 0.8 was broken. The version from the main branch should work on Pharo11.

and one last thing, for the finalization profiler you need Pharo 12. For the allocation sites, Pharo 11 is enough. Please don't hesitate to ping me.

from illimani-memory-profiler.

tinchodias avatar tinchodias commented on June 21, 2024

from illimani-memory-profiler.

jordanmontt avatar jordanmontt commented on June 21, 2024

Try this:

IllAllocationProfiler new
	profileOn: [ your code snippet ];
	yourself

And then call open, that will open the UI.

from illimani-memory-profiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.