Draft
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #48 +/- ##
=======================================
Coverage 45.49% 45.49%
=======================================
Files 4 4
Lines 455 455
=======================================
Hits 207 207
Misses 248 248 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Added pandas as dependency - Enhanced parse_strace_line and parse_fs_usage_line to collect detailed data (path, operation, syscall, size_bytes) - Added -y flag to strace for file path extraction - Modified measure_macos_osascript and measure_linux_strace to collect detailed data - Updated magic.py to inject iops_detailed_data variable into user namespace - DataFrame when detailed data available - String message when using psutil mode Co-authored-by: mtauraso <31012+mtauraso@users.noreply.github.com>
- Added comprehensive tests for detailed data parsing and collection - Updated README.md with usage examples for iops_detailed_data - Updated docs/user_guide.rst with detailed documentation - Fixed linter issues (line length, import order) Co-authored-by: mtauraso <31012+mtauraso@users.noreply.github.com>
- Fixed bug where collect_ops and collect_detailed were mutually exclusive - Both histogram and detailed data can now be collected simultaneously - Added warning about iops_detailed_data variable name collision - Improved code structure to handle both flags independently - All 133 tests still pass Co-authored-by: mtauraso <31012+mtauraso@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Expose detailed I/O data via magic variable
Expose detailed I/O data via magic variable
Jan 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Description
Implements
iops_detailed_datamagic variable to expose per-operation I/O details. Previously only aggregate metrics were available; users can now analyze file paths, syscalls, and per-operation sizes.Solution Description
Core Changes
iops_detailed_datainto user namespace after each%%iopsexecutionpandas.DataFramewhen detailed tracing available (strace/fs_usage modes)Data Collection
parse_strace_lineandparse_fs_usage_linewithcollect_detailedparameter-yflag (fd-to-path resolution)Schema
DataFrame columns when available:
path(str): File path accessedoperation(str): "read" or "write"syscall(str): Syscall name (read, write, pread64, etc.)size_bytes(int): Bytes transferredUsage Example
Code Quality
Project-Specific Pull Request Checklists
New Feature Checklist
Documentation Change Checklist
Build/CI Change Checklist
Test Coverage: 13 new tests, all 133 tests passing. CodeQL: 0 alerts.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.