question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rethink GCToolKit API flow: GCAnalyzer returns GCAnalysis

See original GitHub issue

For discussion:

Bruno and I had a discussion about this API in general. It was very refreshing to have his un-initiated perspective here. One of the ideas he tossed into the ring was having an ‘analyzer’ API, to which my response was that is what GCToolkit is.

Later, I got to thinking about it and I see where he’s coming from. I think, perhaps, we should rename the GCToolKit class to GCAnalyzer, and have the analyze method return a GCAnalysis which would be what JavaVirtualMachine is now. I think this would make it more clear to the user what to do and what to use.

Thoughts?

_Originally posted by @dsgrieve in https://github.com/microsoft/gctoolkit/pull/70#issuecomment-910364145_

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dsgrievecommented, Oct 12, 2021

I’ll be frank here and state my opinion that what we have now for an API is unsatisfactory. The API is designed to support the Censum way of modeling which makes it difficult for anyone else to use. The Aggregators/Aggregations, and the whole of gctoolkit-vertx, is a layer of abstraction that is unnecessary. I believe that the majority of users want to just get a stream of events from the parser:

GCLogFile logFile = new GCLogFile(path);
Stream<JVMEvent> jvmEventStream = GCLogParser.parse(logFile); 
0reactions
dsgrievecommented, Oct 12, 2021

@karianna There is value to the current API. In my opinion, the current API should be built on a more fundamental API.

Read more comments on GitHub >

github_iconTop Results From Across the Web

microsoft/gctoolkit: Tool for parsing GC logs - GitHub
The toolkit parses GC log files into discrete events and provides an API for aggregating data from those events. This allows the user...
Read more >
Introducing Microsoft GCToolkit - Microsoft for Java Developers
The toolkit parses GC log files into discrete events and provides an API for aggregating data from those events. This allows the user...
Read more >
Universal JVM GC analyzer - Java Garbage collection log ...
Free online java GC log analyzer. Analyze JVM, Android garbage collection logs. Troubleshoot long GC pause, memory leak, OutOfMemoryError.
Read more >
Garbage Collector Log Analysers - Fasterj
Get rid of your performance problems and memory leaks! Modern Garbage Collection Tuning · Shows tuning flow chart for GC tuning ...
Read more >
Using the GC Log Analyzer - Azul Docs
Looking for Zing? The Azul Zing Virtual Machine is now Azul Zulu Prime Builds of OpenJDK and part of Azul Platform Prime. Learn...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found