Skip to content

Commit bc19f1d

Browse files
Olivia-liufacebook-github-bot
authored andcommitted
Rename module etdb to inspector (#908)
Summary: Etdb directory was renamed, but because the Example usage is static, it didn't get updated Reviewed By: Jack-Khuu Differential Revision: D50282527
1 parent a62c53a commit bc19f1d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

docs/source/sdk-inspector.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,23 @@ Inspector Methods
2626
Constructor
2727
~~~~~~~~~~~
2828

29-
.. autofunction:: sdk.inspector.inspector.Inspector.__init__
29+
.. automodule:: sdk.Inspector
30+
.. autofunction:: __init__
3031

3132
**Example Usage:**
3233

3334
.. code:: python
3435
35-
from executorch.sdk.etdb.inspector import Inspector
36+
from executorch.sdk import Inspector
3637
3738
inspector = Inspector(etdump_path="/path/to/etdump.etdp", etrecord_path="/path/to/etrecord.bin")
3839
3940
4041
print_data_tabular
4142
~~~~~~~~~~~~~~~~~~
4243

43-
.. autofunction:: sdk.inspector.inspector.Inspector.print_data_tabular
44+
.. automodule:: sdk.Inspector
45+
.. autofunction:: print_data_tabular
4446

4547
.. _example-usage-1:
4648

@@ -56,7 +58,8 @@ print_data_tabular
5658
find_total_for_module
5759
~~~~~~~~~~~~~~~~~~~~~
5860

59-
.. autofunction:: sdk.inspector.inspector.Inspector.find_total_for_module
61+
.. automodule:: sdk.Inspector
62+
.. autofunction:: find_total_for_module
6063

6164
.. _example-usage-2:
6265

@@ -74,7 +77,8 @@ find_total_for_module
7477
get_exported_program
7578
~~~~~~~~~~~~~~~~~~~~
7679

77-
.. autofunction:: sdk.inspector.inspector.Inspector.get_exported_program
80+
.. automodule:: sdk.Inspector
81+
.. autofunction:: get_exported_program
7882

7983
.. _example-usage-3:
8084

0 commit comments

Comments
 (0)