TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Would you use continuous profiling to help refactor code?

2 点作者 pcbje大约 1 年前
Hi HN! I&#x27;m the creator of a piece of Java software that I want to improve the performance and readability of. I have a fairly good test coverage to ensure that the software continues to run correctly, but I now want to refactor the code to:<p>* Make it easier to read and maintain * Make it faster<p>For the second goal, I have relied heavily on continuous profiling tools, particularly Glowroot and Pyroscope, but I seem to have exhausted the gains I&#x27;m getting from these tools.<p>Flame graphs seem to hide information about how the code actually runs, such as how many times a function was called, so I started thinking about what information could help me take the next steps. The current, very hacky output combines interactive charts that let the user explore and step through a complete snapshot profile of a unit test. I&#x27;m also looking to include techniques from social network analysis to identify significant and potentially problematic code paths.<p>I can&#x27;t help but think that these techniques could be packaged into a useful product, but rather than following my usual M.O. of building first and showing later, I figured I could ask here first:<p>1. Would you be interested in a service where you could send profiles of your code to help you make it faster and easier to read?<p>2. Do you think that showing profiler data as an interactive graph that shows relationships between function, classes and packages, together with statistics, could be a useful technique to identify how code can be refactored?<p>3. Does this already exists? I have looked, but can&#x27;t seem to find it. OpenTelemetry seems to be getting a lot of focus, but I haven&#x27;t seen a collector&#x2F;analysis app that does what I would like to do<p>Thanks!

暂无评论

暂无评论