Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
63 views

I'm using .NET profiling api to instrument my .NETCore application running on Linux. I need to find all the assemblies loaded in my application. I've enabled the flag COR_PRF_MONITOR_ASSEMBLY_LOADS to ...
RANJITH M's user avatar
0 votes
1 answer
182 views

I take the project Newtonsoft from git and compile it. When I open the assembly dll and I check some of the full method names (full method name mean return type of the method + namespace + class + ...
Yanshof's user avatar
  • 9,955
0 votes
0 answers
74 views

I have been using CLRProfiler on Linux (using WSL) on my Windows 10 machine. I got new machine with Windows 11, and I am trying to do same, meaning that I am using WSL (Ubuntu) and the same code for ...
Yanshof's user avatar
  • 9,955
0 votes
1 answer
267 views

I've created a .NET Profiling DLL that implements the ICorProfilerCallback3 interface. I'm using the profiling to trace the functions called during Runtime, however, I'm looking to trace application ...
CBaker's user avatar
  • 850
2 votes
1 answer
347 views

I'm playing around with the unmanaged Profiling interfaces for the CLR. When running with a netcoreapp3.1 or net5.0 console application, in ICorProfilerCallback::JITCompilationStarted or in ...
Russ Cam's user avatar
  • 126k
0 votes
1 answer
271 views

I've implemented the .Net Profiler callback which allows me to get data about all the functions called in a .NET application. The function callback works great. Starting in the callback, I make a call ...
CBaker's user avatar
  • 850
1 vote
1 answer
90 views

I'm using CLR profiling API to profile my .NET Core application. In the method enter hook I can get the classID and metadata. Is there any way to invoke another function from that class using ...
Zader's user avatar
  • 97
0 votes
1 answer
482 views

I'm implementing profiler to track http requests coming to .net core applications hosted in IIS. I'm using coreclr profiling api to hook method enter/exit. Which method I should track to know a new ...
Zader's user avatar
  • 97
5 votes
1 answer
235 views

I'm currently inspecting deep objects in the CLR using the Profiler API. I have a specific problem analyzing "this" argument for Iterators/async methods (generated by the compiler, in the form of <...
Egozy's user avatar
  • 380
2 votes
0 answers
216 views

I'm writing a native CLR Profiler which does some heavy IL rewriting. When developing a new feature, we sometimes encounter a CLR verification error. For small methods, it's pretty easy to compare the ...
Egozy's user avatar
  • 380
3 votes
1 answer
395 views

In the .NET framework profiler, is ExceptionThrown guaranteed to not overlap with GC? Looking at documentation, it appears so: If the profiler blocks here and garbage collection is attempted, the ...
user967710's user avatar
  • 2,057
2 votes
0 answers
178 views

I have a strange requirement as I am working on instrumentation of .NET code using C++ code. In a particular scenario, I need to reload my C# assembly(a dll) into a shared appdomain from that dll ...
Sel_va's user avatar
  • 608
0 votes
1 answer
216 views

In our .Net application, we want to keep track of a file that is getting opened through .Net Code. Any file that is getting opened, execution call always pass through an internal instance method ...
Hitesh's user avatar
  • 1,077
3 votes
0 answers
160 views

The managed DLL can be loaded when it is in GAC using the public key token and assembly name. MetaDataAssemblyEmit->DefineAssemblyRef(pbPublicKeyOrToken, publicKeySize, assemblyName, &...
anbu2388's user avatar
0 votes
1 answer
182 views

I have built custom IL Rewriter that inject custom code into some methods. Part of this injection, I want to instantiate the object of List<int>. I already found the mdTokenRef for List~1. ...
Hitesh's user avatar
  • 1,077
1 vote
0 answers
230 views

I have built the IL Rewriter to monitor any file is being opened in ASP.Net WebApp. To do so, I am rewriting IL for a private method called 'Init' in FileStream class in mscorlib. Here, I inject the ...
Hitesh's user avatar
  • 1,077
3 votes
1 answer
317 views

I have built the IL Rewriter for some custom requirement. All it does is Creates method references for another .Net DLL (newly built custom DLL) Inject epilogue & prologue for few required methods,...
Hitesh's user avatar
  • 1,077
1 vote
0 answers
79 views

So, the profiler is written in c++ and is launched by the CLR automatically when the process to be profiled is launched. The process then launches another application (the main target of profiling). ...
Ali tariq's user avatar
0 votes
1 answer
74 views

I would like to be able to find all the surviving references of some kind of object in any application without having to use an external memory profiler. My basic idea is that, I just want to be able ...
pix's user avatar
  • 1,289
0 votes
1 answer
701 views

I gather the main benefit of using the CLR Profiler ICLRProfiling::AttachProfiler method is that you now can attach your CLR profiler long after the target process has started and that you also don't ...
user avatar
3 votes
1 answer
436 views

I have code that is structured like this: class A { void M() {} } delegate void B<T1,T2>(T1 key, T2 value); And I'm using the ICorProfiler2 API to profile that code. Now, when method M is ...
Fabian Streitel's user avatar
1 vote
2 answers
308 views

I am calling a two C++ function calls from C# my code is below. [DllImport("A.dll", CallingConvention = CallingConvention.StdCall, EntryPoint = "FuncA"), System.Security.SuppressUnmanagedCodeSecurity]...
Sel_va's user avatar
  • 608
0 votes
0 answers
188 views

I have a CLR profiler that I have written which injects code into methods at JIT time. The code I inject depends on .NET 3.5+. How can I detect the version of the .NET Framework that is available at ...
Micah Zoltu's user avatar
  • 7,521
3 votes
1 answer
414 views

I have a need to develop a specialized CLR profiler. CLR profilers must be implemented as a COM server implementing ICorProfilerCallback or a newer version currently up through 5. Profiler ...
Dono's user avatar
  • 1,304
1 vote
1 answer
361 views

I played with .NET profiling API (ICorProfilerCallback) and quickly discovered that FunctionID is not stable (it may be reused, see http://msdn.microsoft.com/en-us/library/bb384619.aspx). That's all ...
Nullptr Dev's user avatar