MemoScope/Core/Cache/ClrDumpCache.cs
File ClrDumpCache.cs
has 357 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
using Microsoft.Diagnostics.Runtime;
using System.Collections.Generic;
using System.Data.SQLite;
using System.IO;
using WinFwk.UITools.Log;
Class ClrDumpCache
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
Open
public class ClrDumpCache
{
ClrDump ClrDump { get; }
public bool DataExists { get; private set; }
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 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 LoadTypeStat
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public List<ClrTypeStats> LoadTypeStat()
{
var list = new List<ClrTypeStats>();
SQLiteCommand cmd = new SQLiteCommand();
cmd.Connection = cxion;