| 504 | } |
| 505 | |
| 506 | DrapeMeasurer::DrapeStatistic DrapeMeasurer::GetDrapeStatistic() |
| 507 | { |
| 508 | DrapeStatistic statistic; |
| 509 | #ifdef RENDER_STATISTIC |
| 510 | statistic.m_renderStatistic = GetRenderStatistic(); |
| 511 | #endif |
| 512 | #ifdef TILES_STATISTIC |
| 513 | statistic.m_tileStatistic = GetTileStatistic(); |
| 514 | #endif |
| 515 | #ifdef GENERATING_STATISTIC |
| 516 | statistic.m_generatingStatistic = GetGeneratingStatistic(); |
| 517 | #endif |
| 518 | #ifdef TRACK_GPU_MEM |
| 519 | statistic.m_gpuMemStatistic = GetGPUMemoryStatistic(); |
| 520 | #endif |
| 521 | #ifdef TRACK_GLYPH_USAGE |
| 522 | statistic.m_glyphStatistic = dp::GlyphUsageTracker::Instance().Report(); |
| 523 | #endif |
| 524 | return statistic; |
| 525 | } |
| 526 | } // namespace df |