Commit 8fcf159
Replace hardcoded recommendations with data-driven insights
Instead of generic boilerplate advice, generate specific actionable
recommendations based on the actual analysis data:
High-Impact Targets (by total time):
- Show top 5 templates with actual times and percentages
- Recommend strategy based on patterns:
- High count (>100) → Extern templates
- High individual cost (>50ms) → Template specialization
- Otherwise → Explicit instantiation
Frequently Instantiated (>100 times):
- Identify templates compiled repeatedly
- Recommend PCH or extern templates
Most Expensive Individual Instantiations:
- Show top 3 specific instantiations to profile
- Point to exact templates consuming most time
Example before (useless):
"Focus on High-Impact Templates: Address top 10 families first"
Example after (actionable):
"TensorDescriptor - 4.2s total (18.1%)
- 2,546 instantiations, 1.65ms average
- Strategy: Extern templates - High instantiation count"
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4b8471b commit 8fcf159
1 file changed
Lines changed: 25 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
80 | 91 | | |
81 | 92 | | |
82 | 93 | | |
| |||
0 commit comments