Skip to content

Commit 3ce0bd1

Browse files
Olivia-liudbort
authored andcommitted
Rename module etdb to inspector (#908)
Summary: Pull Request resolved: #908 Etdb directory was renamed, but because the Example usage is static, it didn't get updated Reviewed By: tarun292, Jack-Khuu Differential Revision: D50282527 fbshipit-source-id: 4839fcc74dc9c5905bfacfe30f4f199968c9541f
1 parent 806481f commit 3ce0bd1

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

docs/source/sdk-inspector.rst

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

29-
.. autofunction:: sdk.inspector.inspector.Inspector.__init__
29+
.. autofunction:: sdk.Inspector.__init__
3030

3131
**Example Usage:**
3232

3333
.. code:: python
3434
35-
from executorch.sdk.etdb.inspector import Inspector
35+
from executorch.sdk import Inspector
3636
3737
inspector = Inspector(etdump_path="/path/to/etdump.etdp", etrecord_path="/path/to/etrecord.bin")
3838
3939
4040
print_data_tabular
4141
~~~~~~~~~~~~~~~~~~
4242

43-
.. autofunction:: sdk.inspector.inspector.Inspector.print_data_tabular
43+
.. autofunction:: sdk.Inspector.print_data_tabular
4444

4545
.. _example-usage-1:
4646

@@ -56,7 +56,7 @@ print_data_tabular
5656
find_total_for_module
5757
~~~~~~~~~~~~~~~~~~~~~
5858

59-
.. autofunction:: sdk.inspector.inspector.Inspector.find_total_for_module
59+
.. autofunction:: sdk.Inspector.find_total_for_module
6060

6161
.. _example-usage-2:
6262

@@ -74,7 +74,7 @@ find_total_for_module
7474
get_exported_program
7575
~~~~~~~~~~~~~~~~~~~~
7676

77-
.. autofunction:: sdk.inspector.inspector.Inspector.get_exported_program
77+
.. autofunction:: sdk.Inspector.get_exported_program
7878

7979
.. _example-usage-3:
8080

@@ -119,13 +119,7 @@ of an ``Inspector`` instance, for example:
119119
~~~~~~~~~~~~~~~
120120

121121
Access ``Event`` instances through the ``events`` attribute of an
122-
``EventBlock`` instance, for example:
123-
124-
.. code:: python
125-
126-
for event_block in inspector.event_blocks:
127-
for event in event_block.events:
128-
# Do something with each event
122+
``EventBlock`` instance.
129123

130124
.. autoclass:: sdk.inspector.inspector.Event
131125

0 commit comments

Comments
 (0)