Get phase timing breakdown for a provenance graph. Returns timing data for each phase in the turn. Populated from the per-phase token breakdown Sherpa graphs carry; empty for agents that do not emit phase timing.
(
&self,
provenance_hash: &Hash,
)
| 1805 | /// per-phase token breakdown Sherpa graphs carry; empty for agents that |
| 1806 | /// do not emit phase timing. |
| 1807 | pub fn get_session_phases( |
| 1808 | &self, |
| 1809 | provenance_hash: &Hash, |
| 1810 | ) -> Result<Vec<atomic_core::change::session::PhaseTimingEntry>, RepositoryError> { |
| 1811 | let txn = self |
| 1812 | .pristine |
| 1813 | .read_txn() |
| 1814 | .map_err(|e| RepositoryError::Database(e.to_string()))?; |
| 1815 | let provenance_id = txn |
| 1816 | .get_internal(provenance_hash) |
| 1817 | .map_err(|e| RepositoryError::Database(e.to_string()))? |
| 1818 | .ok_or_else(|| RepositoryError::ChangeNotFound { |
| 1819 | hash: provenance_hash.to_base32(), |
| 1820 | })?; |
| 1821 | txn.get_session_phases(provenance_id.get()) |
| 1822 | .map_err(|e| RepositoryError::Database(e.to_string())) |
| 1823 | } |
| 1824 | |
| 1825 | /// Get intent metadata for a provenance graph. |
| 1826 | /// |
nothing calls this directly
no test coverage detected