-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Profiler Interest Group - Announcements #9305
Comments
Retroactive announcement - Oct 20th - I updated the profiling status page that describes our progress supporting the ICorProfiler APIs |
Retroactive announcement - Oct 20th - @davmason implemented new ICorProfiler APIs (#14612, dotnet/coreclr#14643) to help profilers deal with the breaking changes that are coming with [tiered jitting] (dotnet/coreclr#12193) |
Jan 4th 2018 - @sywhang brought up more profiling tests for ARM and OSX and we believe things are working well |
This comment has been minimized.
This comment has been minimized.
.NET Core 2.1 bug : ( |
Yes, I had seen that. Fortunately, doesn't impact me. :) |
We are adding a startup hook that could potentially be useful for profilers: dotnet/core-setup#4421. The plan is to add a |
.NET Core 2.2 Preview 2 has shipped with Tiered Compilation on by default. We warned this was in progress last year above in this thread:
If you haven't yet tested with this feature on we hope you will soon : ) |
Tiered compilation will be disabled by default for .NET Core 2.2 RTM, mainly due to https://github.com/dotnet/coreclr/issues/19752, which we plan to fix soon for 3.0 |
dotnet/coreclr#22617 allows profilers to edit more types of metadata after module load (specifically adding There is a minor breaking change as part of this work. Also included in that PR is a document (located at Documentation/Profiling/Profiler Breaking Changes.md) to track breaking changes as they happen. |
If you have any questions/concerns about @davmason's changes above, as always feel free to reach out to us. Thanks! |
the existing COR_PRF_HIGH_BASIC_GC profiling is VERY heavy weight. dotnet/coreclr#22866 added a lightweight GC profiling option that just gives you
this is something you can use on production machines. you call access this by calling |
There are three recent changes to announce. First, profiler attach/detach is now supported (#24670) leveraging the existing EventPipe work. You can find documentation on how to use it here: https://github.com/dotnet/coreclr/blob/master/Documentation/Profiling/Profiler%20Attach%20on%20CoreCLR.md. This means that the trigger process will use a completely different API, but the advantage is that it works on Linux and Windows. Second, a new api The last announcement is that Please feel free to reach out with any questions, comments, or concerns. |
Hi Everyone, I recently opened dotnet/coreclr#26762 to change how we deal with an attach profiler on shutdown. Currently on graceful process exit (i.e. the C# main exits normally) we issue a This PR will change it so the runtime never releases the profiler's COM object, and instead lets the OS clean up during process shutdown. You will still get a It is my belief that this shouldn't have a negative impact on profilers, since you already have to account for the situation where the runtime doesn't free your library. Now that situation just gets a lot more common. If you would be impacted by this change please get in touch. This issue is just for announcements so please make any comments either in the PR or on the relevant issue dotnet/coreclr#26687. |
@davmason are you saying that you will always do an |
Yes, that is the new behavior. |
Hi Everyone, PR #1201 means that arrays are no longer special cased on class unload and profilers will be notified (via ClassUnloadStarted) when an array type is unloaded from a collectible context. Up until this point they have been purposefully excluded from ClassUnloadStarted. I don't expect this to be a breaking change for any profilers, please get in touch if this is not the case. |
Thanks @davmason, |
As it stands now the class load callbacks are not called. That is because this wasn't an intentional change, but rather a side effect of removing array's TypeDesc. Is that an issue for your profiler? It would be a fairly small change to have array types reported for class load, or to block them from being reported in class unload and go back to the old behavior. |
No, this shouldn't be an issue (as we're supporting CLRv2/4 anyway). Thanks for these updates. |
Hi again everyone, I would like to give you all a heads up about a potential breaking change. #32283 introduced a new GC generation for the first time since very early in desktop .net. This means that there are now 5 total generations instead of the previous 4:
There is no specific breaking change to the ICorProfiler APIs, but I suspect that many of you will be broken because of assumptions made about the number of GC generations inside your profilers. We (the .net diagnostics team) are finding many of our tools need updating because of this change. If you are interested in the type of work we need to do, you can find that at dotnet/diagnostics#1408. |
Hi everyone, I just merged a small breaking change with #60999. There was a typo in the name of one method in the released .Net 6 corprof.idl, it does not impact any types or layouts so it will not break at runtime, but if you are building against the .net 6 headers and upgrade to this change it will cause a build break. |
Wanted to post this here in case anyone else runs into it. |
Hi All, The issue reported in #76016 was found and fixed too late to be in the 7.0 GA release. It is currently scheduled to go in the first servicing update in January, PR is at #77533. This will only impact 7.0, not previous versions. The symptoms you will see are not getting ModuleLoadFinished callbacks for dynamic modules. If you have questions or concerns please comment in #76016 or file a new issue to not spam everyone on this thread. |
Hi All, First off some bookkeeping, I just locked the issue to make sure discussion doesn't happen here and this is limited to announcements only. I want to be clear that I welcome any and all discussion, you'll just need to file a new issue or comment on an existing one to have the discussion so this issue can be announcements only. Next up I want to announce the new NonGC heap and related ICorProfiler APIs. For the history of the runtime all objects have been on a GC heap, but starting in .net 8 preview 5 we now keep some objects that are available at compile time on a NonGC heap. See this issue for more details: dotnet/diagnostics#4156 What this means to ICorProfiler implementations is some objects will not work with the existing GC APIs. We have added new APIs to work with NonGC objects.
If you pass a NonGC object to an existing GC API you will see the error If possible please try out your profilers on preview 5 or later and let us know if you run in to any issues. As mentioned above feel free to reach out any time with a new issue or by commenting on dotnet/diagnostics#4156. |
Hi all! A recent PR for .NET 10 may affect profilers using Enter/Leave/Tailcall hooks. It has always been the case that calling an ICorProfilerInfo method from within these callbacks that triggered the .NET GC to run may have corrupted memory without warning. As a profiler author the only solution was to learn which methods might do that and avoid calling them. With this PR we have reduced the set of profiler methods that trigger the GC and enabled explicit error checks for the ones that still do. After this PR is submitted calling an ICorProfilerInfo method that might trigger GC returns error code CORPROF_E_UNSUPPORTED_CALL_SEQUENCE when called from Enter/Leave/Tailcall hooks. Its possible that some profilers are currently invoking these APIs and getting lucky in not having the GC run, but now would get the error code always instead. #107152 (comment) has the list of profiler methods that might trigger GC and have this change in behavior. If you have any questions about this or requests to make other APIs callable from Enter/Leave/Tailcall hooks we're happy to discuss. Best way is to open a new GH issue in this repo and tag @dotnet/dotnet-diag in it (don't use this issue, it is only for announcements). Thanks! |
Hello everyone! This PR for .NET 10 affects profilers that use GetFunctionInfo2 without a Originally, If there are any questions, please use #107139 or open a new GH issue in this repo and tag @dotnet/dotnet-diag in it. Thanks! |
I'm making this issue as an informal way to flag other issues and discussions that might be relevant to Building .NET profiling tools. This is similar to the .NET announcements repo, but given that profiling is a small crowd I didn't want to create noise for everyone or be very formal about it. Follow the issue if this is something you care about. Hopefully it works well but if not we can try something else.
Please don't do discussion directly in this issue, just links. Thanks!
The text was updated successfully, but these errors were encountered: