In ServiceStack I am using the MiniProfiler configured to store profiles using SqlServerStorage. The profiles are being recorded to the database into the 'MiniProfilers' table without issue. Is there a viewer that would render the data (especially the json) from the MiniProfilers table?
This sample shows how SqlServerStorage is being initialized. The method is called from the AppHost.cs on Configure:
private void EnableProfiling(string profilerConnection)
{
using (var conn = new SqlConnection(profilerConnection))
{
conn.Open();
var miniProfilersTableExists = conn.ExecuteScalar<int>("select case when exists((select * from information_schema.tables where table_name = 'MiniProfilers')) then 1 else 0 end");
if (miniProfilersTableExists != 1)
conn.Execute(SqlServerStorage.TableCreationScript);
}
Profiler.Settings.Storage = new SqlServerStorage(profilerConnection);
}