You can get the Visualforce usage statistics from the VisualforceAccessMetrics object in Salesforce by using SOQL (Salesforce Object Query Language) to query the object and retrieve the desired information. Here’s an example of how you can do this:
SELECT ApexPageId, MetricsDate, TotalTime, AverageTime, TotalRequests, UniqueUsers FROM VisualforceAccessMetrics WHERE MetricsDate = TODAY
This query retrieves the Visualforce page ID, date, total time, average time, total requests, and unique users for the current day. You can modify the query to retrieve data for a different time period by changing the value in the
Once you have executed the query, you can use the results to get the desired statistics and usage information for your Visualforce pages.