(base_dir: str = "profiling")
| 17 | |
| 18 | |
| 19 | def generate_db_path(base_dir: str = "profiling") -> str: |
| 20 | timestamp = datetime.now().strftime("%Y%m%d_%H%M%S") |
| 21 | stats_dir = Path(base_dir) / "statistics" / timestamp |
| 22 | stats_dir.mkdir(parents=True, exist_ok=True) |
| 23 | return str(stats_dir / "base.db") |
| 24 | |
| 25 | |
| 26 | def create_database(db_path: str) -> sqlite3.Connection: |
no outgoing calls
no test coverage detected