ChromiumXRefs
Shows Chromium code cross-references from cs.chromium.org
Details
Installs
- Total 645
- Win 230
- Mac 127
- Linux 288
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Chromium X-Refs Plugin for Sublime Text
The ChromiumXRefs plugin shows cross-references for Chromium code using the codesearch backend. It displays the x-refs in a window at the bottom of the editor. These include usages, callers, overrides, declaration, and implementation. There is special sauce built into the call-graph, such that it correctly infers callers that posttask (including from other threads), ipcs (cross-process call-graphs!), and state machine transitions (for DoLoop state machines). This means that the call graph can dig from a cache state in the net/ state-machine all the way back to the blink loader!
- Methods that create callbacks are considered callers
- IPC calls are detected and the sender is considered the caller
- net/ DoLoop state transitions are detected and considered callers
- Mojo callers are under construction
Installation
Using Package Control, install the package named ChromiumXRefs.
Show cross-references for a given function or variable
- Command: Chromium X-Refs
- Suggested Keymap Binding: { “keys”: [“ctrl+alt+\”], “command”: “chromium_xrefs” }
- Function: Creates a bottom panel with links to declaration, definition, callers, overrides, and x-refs for the given text. Click on the caller to jump to the code. Click on the “+” sign next to the caller to delve deeper in the call stack. Click on the “-tests” button on the top to remove functions with “test” in their name. Click on the “X” button in the top right to close the panel.
- Notes: The data is retrieved from cs.chromium.org and the data will only be as recent as what that site last indexed. This means local changes you have made to the codebase will not be reflected.
Recall last shown x-refs frame
- Command: Chromium Recall X-Refs
- Suggested Keymap Binding: { “keys”: [“ctrl+alt+shift+\”], “command”: “chromium_recall_xrefs” }
- Function: Recalls the last x-refs displayed. You don't have to be in the same source file you were in when you originally displayed the hierarchy.
Jump to Definition
- Command: Jump to Definition
- Suggested Keymap Binding: { “keys”: [“ctrl+\”], “command”: “chromium_xrefs_jump_to_definition” }
- Function: Jumps to the definition of the keyword.
Jump to Declaration
- Command: Jump to Declaration
- Suggested Keymap Binding: { “keys”: [“ctrl+shift+\”], “command”: “chromium_xrefs_jump_to_definition” }
- Function: Jumps to the definition of the keyword.
Suggested mouse mapping
- A mouse mapping is quite useful for this plugin. Paste the following in your “Default (OS).sublime-mousemap” file in your User/ directory. Replace “OS” with one of Windows, OSX, or Linux. Then you should be able to get x-refs with a ctrl+alt + left mouse click.
[
{
"button": "button1",
"count": "1",
"modifiers": ["ctrl", "alt"],
"press_command": "drag_select",
"command": "chromium_get_callers_hierarchy"
},
{
"button": "button2",
"count": "1",
"modifiers": ["ctrl", "alt"],
"press_command": "drag_select",
"command": "chromium_recall_get_callers_hierarchy"
}
]