Ejemplo n.º 1
0
    public static bool SaveSnapshotFiles(string targetSession, string targetName, PackedMemorySnapshot packed, CrawledMemorySnapshot unpacked)
    {
        string targetDir = Path.Combine(MemUtil.SnapshotsDir, targetSession);

        if (!Directory.Exists(targetDir))
        {
            Directory.CreateDirectory(targetDir);
        }

        if (!TrackerModeUtil.SaveSnapshotBin(targetDir, targetName + TrackerModeConsts.SnapshotBinPostfix, packed))
        {
            return(false);
        }
        if (!TrackerModeUtil.SaveSnapshotJson(targetDir, targetName + TrackerModeConsts.SnapshotJsonPostfix, unpacked))
        {
            return(false);
        }

        Debug.LogFormat("Snapshot saved successfully. (dir: {0}, name: {1})", targetDir, targetName);
        return(true);
    }
Ejemplo n.º 2
0
    public override bool SaveSessionJson(CrawledMemorySnapshot Unpacked)
    {
        string sessionName = _sessionTimeStr + TrackerModeConsts.EditorTag;

        return(TrackerModeUtil.SaveSnapshotJson(sessionName, _selected.ToString() + ".json", Unpacked));
    }
Ejemplo n.º 3
0
    public override bool SaveSessionJson(CrawledMemorySnapshot Unpacked)
    {
        string sessionName = _sessionTimeStr + TrackerModeConsts.RemoteTag + _IPField;

        return(TrackerModeUtil.SaveSnapshotJson(sessionName, _selected.ToString(), Unpacked));
    }