From e6fcf79866b333dd1bfb926d512c1679fd63b621 Mon Sep 17 00:00:00 2001 From: hariharandev1 Date: Tue, 27 Aug 2024 18:34:41 -0700 Subject: [PATCH] fix for preads --- dfanalyzer/main.py | 2 +- docs/dfanalyzer_build.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dfanalyzer/main.py b/dfanalyzer/main.py index 2f394d1..2b1cc63 100644 --- a/dfanalyzer/main.py +++ b/dfanalyzer/main.py @@ -232,7 +232,7 @@ def io_function(json_object, current_dict, time_approximate,condition_fn): if "POSIX" == json_object["cat"] and "ret" in json_object["args"]: if json_object["name"] == "write": d["size"] = int(json_object["args"]["ret"]) - elif json_object["name"] == "read": + elif json_object["name"] in ["read", "pread"]: d["size"] = int(json_object["args"]["ret"]) elif json_object["name"] == "fwrite": d["size"] = 1 diff --git a/docs/dfanalyzer_build.rst b/docs/dfanalyzer_build.rst index 498586e..e786bcc 100644 --- a/docs/dfanalyzer_build.rst +++ b/docs/dfanalyzer_build.rst @@ -32,4 +32,4 @@ To run the notebook you will have to install Jupyter. We have a simple requireme cd dftracer pip install -r examples/dfanalyzer/requirements.txt -A simple example of loading DFAnalyzer and quick recommended queries are available on to :code:`/examples/dfanalyzer/dfanalyzer_distributed.ipynb` and run your notebook. +A simple example of loading DFAnalyzer and quick recommended queries are available on to :code:`/examples/dfanalyzer/dfanalyzer.ipynb` and run your notebook.