Showing 76 of 126 total issues
Method Analyse
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
internal static List<ArraysInformation> Analyse(ClrDump clrDump, MessageBus msgBus)
{
CancellationTokenSource token = new CancellationTokenSource();
var arrays = new List<ArraysInformation>();
msgBus.BeginTask("Analyzing arrays...", token);
Method AddSimpleValueColumn
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void AddSimpleValueColumn(this ObjectListView listView, Func<object, ulong> addressGetter, ClrDump dump, Func<object, ClrType> typeGetter)
{
var col = new OLVColumn("Value", null)
{
Width = 150
Method CheckDumpTriggers
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void CheckDumpTriggers()
{
var activeTriggers = processTriggersControl.Triggers.Where(dt => dt.Active);
if (!activeTriggers.Any())
{
Method StoreData
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void StoreData(CancellationToken token)
{
BeginUpdate();
Dictionary<ClrType, ClrTypeStats> stats = new Dictionary<ClrType, ClrTypeStats>();
foreach (var address in ClrDump.Heap.EnumerateObjectAddresses())
Method Setup
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void Setup(ClrDump clrDump)
{
ClrDump = clrDump;
Icon = Properties.Resources.processor_small;
Name = $"#{clrDump.Id} - Threads";
Method Analyse
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
internal static List<StringInformation> Analyse(ClrDump clrDump, MessageBus msgBus)
{
var stringType = clrDump.GetClrType(typeof(string).FullName);
var stringInstances = clrDump.EnumerateInstances(stringType);
int nbStrings = clrDump.CountInstances(stringType);
Method Run
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void Run()
{
while (!stopRequested)
{
SimpleTask task;
Method AnalyzeRootPath
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static List<RootPathInformation> AnalyzeRootPath(MessageBus msgBus, ClrDumpObject clrDumpObject)
{
ClrDump clrDump = clrDumpObject.ClrDump;
ulong address = clrDumpObject.Address;
CancellationTokenSource token = new CancellationTokenSource();
Method tspApplyfilter_Click
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void tspApplyfilter_Click(object sender, EventArgs e)
{
var triggers = codeTriggersControl.Triggers.Where(trig => trig.Active).ToArray();
TypeRegistry reg = new TypeRegistry();
reg.RegisterType<DateTime>();
Method HandleMessage
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void HandleMessage(OpenDumpRequest openDumpRequest)
{
CancellationTokenSource source = new CancellationTokenSource();
var token = source.Token;
foreach (var fileInfo in openDumpRequest.FileInfos.Where(fi => fi != null))
Method GetSimpleValue
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static object GetSimpleValue(ulong objAddress, ClrType clrType, bool isInterior=false)
{
if (objAddress == 0)
throw new NullReferenceException("ClrObject at is pointing to null address.");
Method Run
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public override void Run()
{
locks = new string[NbThreads];
for (int i = 0; i < NbThreads; i++)
{
Method Run
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public override void Run()
{
string lockB = "Lock_A";
string lockA = "Lock_B";
Thread thread = new Thread(() =>
Method Run
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public override void Run()
{
for(int i=0; i < N; i++)
{
Thread t = new Thread(() => DoSomething(i));
Method GetFuncName
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
internal static string GetFuncName(ClrElementType elementType)
{
switch(elementType)
{
case ClrElementType.Boolean:
Method LoadInstances
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public List<ulong> LoadInstances(int typeId)
{
int nb = 0;
string name = null;
CancellationTokenSource token = null;
Method SymFindFileInPath32
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static extern bool SymFindFileInPath32(IntPtr hProcess, string searchPath, string filename, uint id, uint two, uint three, uint flags, StringBuilder filePath, IntPtr callback, IntPtr context);
Method SymFindFileInPath64
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static extern bool SymFindFileInPath64(IntPtr hProcess, string searchPath, string filename, uint id, uint two, uint three, uint flags, StringBuilder filePath, IntPtr callback, IntPtr context);
Method SymFindFileInPath
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected abstract bool SymFindFileInPath(IntPtr hProcess, string searchPath, string filename, uint id, uint two, uint three, uint flags, StringBuilder filePath, IntPtr callback, IntPtr context);
Method SymFindFileInPath
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected override bool SymFindFileInPath(IntPtr hProcess, string searchPath, string filename, uint id, uint two, uint three, uint flags, StringBuilder filePath, IntPtr callback, IntPtr context)