-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lldb pretty printers for relay #4453
Conversation
python/tvm/contrib/lldb/tvm.py
Outdated
@@ -0,0 +1,201 @@ | |||
# Licensed to the Apache Software Foundation (ASF) under one | |||
# or more contributor license agreements. See the NOTICE file | |||
# distributed with this work for additional information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that this is a separate package and cannot be imported separately, let us put it under apps/lldb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Files have been moved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor nits
@@ -0,0 +1,3 @@ | |||
# Put this file in your home directory as .lldbinit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that this file also allows comment, please add an ASF header as in the py file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
apps/lldb/dot.lldbinit.in
Outdated
@@ -0,0 +1,3 @@ | |||
# Put this file in your home directory as .lldbinit | |||
# Update the line below to point to the pretty printer script | |||
command script import ~/bin/lldb/tvm.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~/bin/lldb/tvm.py /path/to/tvm/apps/lldb/tvm.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
A set of lldb debugger pretty printers that use the relay PrettyPrinter functionality to display data structures in the lldb debugger.
A set of lldb debugger pretty printers that use the relay PrettyPrinter functionality to display data structures in the lldb debugger. - Put the dot.lldbinit file in your home directory as .lldbinit. - Update the file to point to the pretty printer script tvm.py - Restart lldb
Thanks @Leo-arm ! |
* lldb pretty printers for relay A set of lldb debugger pretty printers that use the relay PrettyPrinter functionality to display data structures in the lldb debugger. * lldb pretty printers for relay A set of lldb debugger pretty printers that use the relay PrettyPrinter functionality to display data structures in the lldb debugger. - Put the dot.lldbinit file in your home directory as .lldbinit. - Update the file to point to the pretty printer script tvm.py - Restart lldb
* lldb pretty printers for relay A set of lldb debugger pretty printers that use the relay PrettyPrinter functionality to display data structures in the lldb debugger. * lldb pretty printers for relay A set of lldb debugger pretty printers that use the relay PrettyPrinter functionality to display data structures in the lldb debugger. - Put the dot.lldbinit file in your home directory as .lldbinit. - Update the file to point to the pretty printer script tvm.py - Restart lldb
A set of lldb debugger pretty printers that use the relay
PrettyPrinter functionality to display data structures in
the lldb debugger.
Put the dot.lldbinit file in your home directory as .lldbinit.
Update the file to point to the pretty printer script tvm.py
Restart lldb.