"use strict";
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2024-2026 Gracker (Chris)
// This file is part of SmartPerfetto. See LICENSE for details.
Object.defineProperty(exports, "__esModule", { value: true });
const traceProcessorService_1 = require("../services/traceProcessorService");
async function checkTables() {
    const tp = (0, traceProcessorService_1.getTraceProcessorService)();
    const traceId = await tp.loadTraceFromFilePath('../perfetto/test/data/android_postboot_unlock.pftrace');
    try {
        // Check what tables exist
        const result = await tp.query(traceId, "SELECT name FROM sqlite_master WHERE type='table' AND name LIKE '%frame%' ORDER BY name");
        console.log('Frame-related tables:');
        result.rows.forEach(row => console.log('  -', row[0]));
    }
    catch (e) {
        console.log('Error:', e.message?.substring(0, 200));
    }
    await tp.deleteTrace(traceId);
}
checkTables().catch(console.error);
//# sourceMappingURL=checkTables.js.map