Gets index that would be assigned to the next added string. Returns: Index of the next string if it was added.
(self)
| 89 | return index |
| 90 | |
| 91 | def next_index(self): |
| 92 | """Gets index that would be assigned to the next added string. |
| 93 | |
| 94 | Returns: |
| 95 | Index of the next string if it was added. |
| 96 | """ |
| 97 | return len(self._string_table) |
| 98 | |
| 99 | def string_table(self): |
| 100 | """Returns a list of strings to store in pprof's string_table.""" |