"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 testAndroidTrace() {
    const tp = (0, traceProcessorService_1.getTraceProcessorService)();
    const traceId = await tp.loadTraceFromFilePath('../perfetto/test/data/android_postboot_unlock.pftrace');
    try {
        // Check if android_frames table exists
        const result = await tp.query(traceId, "SELECT COUNT(*) as count FROM android_frames LIMIT 1");
        console.log('✓ android_frames table exists, count:', result.rows[0][0]);
    }
    catch (e) {
        console.log('✗ android_frames table does not exist:', e.message?.substring(0, 200));
    }
    await tp.deleteTrace(traceId);
}
testAndroidTrace().catch(console.error);
//# sourceMappingURL=testAndroidTrace.js.map