
<script>
document.addEventListener('DOMContentLoaded', function () {
    // Chart.js ile bellek kullanım grafiğini oluştur
    const ctx = document.getElementById('wppa-memory-usage-chart').getContext('2d');

    // AJAX ile PHP'den eklenti verilerini al
    fetch(wppa_ajax.ajax_url + '?action=wppa_get_plugin_data')
        .then(response => response.json())
        .then(data => {
            if (!data || data.length === 0) {
                console.error("Veri alınamadı.");
                return;
            }

            // Grafiğe eklenecek verileri oluştur
            const labels = data.map(plugin => plugin.name);
            const memoryUsage = data.map(plugin => plugin.memory_usage);

            // Chart.js ile grafiği oluştur
            new Chart(ctx, {
                type: 'bar',
                data: {
                    labels: labels,
                    datasets: [{
                        label: 'Bellek Kullanımı (MB)',
                        data: memoryUsage,
                        backgroundColor: 'rgba(75, 192, 192, 0.2)',
                        borderColor: 'rgba(75, 192, 192, 1)',
                        borderWidth: 1
                    }]
                },
                options: {
                    responsive: true,
                    scales: {
                        y: {
                            beginAtZero: true
                        }
                    }
                }
            });
        })
        .catch(error => console.error("AJAX hatası:", error));
});
</script>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://frigolu.com.tr/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://frigolu.com.tr/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://frigolu.com.tr/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://frigolu.com.tr/wp-sitemap-posts-product-1.xml</loc></sitemap><sitemap><loc>https://frigolu.com.tr/wp-sitemap-posts-apus_footer-1.xml</loc></sitemap><sitemap><loc>https://frigolu.com.tr/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://frigolu.com.tr/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
