1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 11:43:13 +02:00

core: add option "time" in command /debug

This commit is contained in:
Sébastien Helleu
2016-11-28 21:52:14 +01:00
parent 9c76d80d4d
commit 93ef6b0a3e
23 changed files with 249 additions and 165 deletions
+21 -19
View File
@@ -218,7 +218,7 @@ Beispiele:
----
[[command_weechat_debug]]
* `+debug+`: Debug-Kontrolle für Hauptprogramm und/oder Erweiterung
* `+debug+`: debug functions
----
/debug list
@@ -227,25 +227,27 @@ Beispiele:
buffer|color|infolists|memory|tags|term|windows
mouse|cursor [verbose]
hdata [free]
time <command>
list: zeigt alle Erweiterungen mit Debuglevel an
set: setzt den Level der Protokollierung für eine Erweiterung
plugin: Name der Erweiterung ("core" für den WeeChat Kern)
level: Debuglevel der Erweiterung (0 = deaktiviert Debug)
dump: Speicherabbild in die WeeChat Protokolldatei schreiben (wie bei einem Programmabsturz)
buffer: speichert den Bufferinhalt als hexadezimale Ausgabe in die Protokolldatei
color: zeigt Informationen über die aktuellen Farbpaarungen an
cursor: schaltet den debug-Modus für den Cursor-Modus ein/aus
dirs: Verzeichnisse werden angezeigt
hdata: zeigt Informationen zu hdata an (mittels free werden alle hdata Informationen aus dem Speicher entfernt)
hooks: zeigt die aktiven Hooks an
infolists: zeigt Information über die Infolists an
libs: zeigt an welche externen Bibliotheken verwendet werden
memory: gibt Informationen über den genutzten Speicher aus
mouse: schaltet den debug-Modus für den Maus-Modus ein/aus
tags: zeigt für jede einzelne Zeile die dazugehörigen Schlagwörter an
term: gibt Informationen über das Terminal und verfügbare Farben aus
windows: zeigt die Fensterstruktur an
list: list plugins with debug levels
set: set debug level for plugin
plugin: name of plugin ("core" for WeeChat core)
level: debug level for plugin (0 = disable debug)
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
buffer: dump buffer content with hexadecimal values in log file
color: display infos about current color pairs
cursor: toggle debug for cursor mode
dirs: display directories
hdata: display infos about hdata (with free: remove all hdata in memory)
hooks: display infos about hooks
infolists: display infos about infolists
libs: display infos about external libraries used
memory: display infos about memory usage
mouse: toggle debug for mouse
tags: display tags for lines
term: display infos about terminal
windows: display windows tree
time: measure time to execute a command or to send text to the current buffer
----
[[command_weechat_eval]]
+3 -1
View File
@@ -218,7 +218,7 @@ Examples:
----
[[command_weechat_debug]]
* `+debug+`: control debug for core/plugins
* `+debug+`: debug functions
----
/debug list
@@ -227,6 +227,7 @@ Examples:
buffer|color|infolists|memory|tags|term|windows
mouse|cursor [verbose]
hdata [free]
time <command>
list: list plugins with debug levels
set: set debug level for plugin
@@ -246,6 +247,7 @@ infolists: display infos about infolists
tags: display tags for lines
term: display infos about terminal
windows: display windows tree
time: measure time to execute a command or to send text to the current buffer
----
[[command_weechat_eval]]
+3 -1
View File
@@ -218,7 +218,7 @@ Exemples :
----
[[command_weechat_debug]]
* `+debug+`: contrôle du debug pour le cœur/les extensions
* `+debug+`: fonctions de debug
----
/debug list
@@ -227,6 +227,7 @@ Exemples :
buffer|color|infolists|memory|tags|term|windows
cursor|mouse [verbose]
hdata [free]
time <commande>
list : lister les extensions avec leur niveau de debug
set : définir le niveau de debug pour l'extension
@@ -246,6 +247,7 @@ infolists : afficher des infos sur les infolists
tags : afficher les étiquettes pour les lignes
term : afficher des infos sur le terminal
windows : afficher l'arbre des fenêtres
time : mesurer le temps pour exécuter une commande ou pour envoyer du texte au tampon courant
----
[[command_weechat_eval]]
+4 -2
View File
@@ -218,15 +218,16 @@ Examples:
----
[[command_weechat_debug]]
* `+debug+`: attiva debug per core/plugin
* `+debug+`: debug functions
----
/debug list
set <plugin> <livello>
set <plugin> <level>
dump [<plugin>]
buffer|color|infolists|memory|tags|term|windows
mouse|cursor [verbose]
hdata [free]
time <command>
list: list plugins with debug levels
set: set debug level for plugin
@@ -246,6 +247,7 @@ infolists: display infos about infolists
tags: display tags for lines
term: display infos about terminal
windows: display windows tree
time: measure time to execute a command or to send text to the current buffer
----
[[command_weechat_eval]]
+21 -19
View File
@@ -218,7 +218,7 @@ stop: カーソルモードを終了
----
[[command_weechat_debug]]
* `+debug+`: core やプラグインのデバッグ管理
* `+debug+`: debug functions
----
/debug list
@@ -227,25 +227,27 @@ stop: カーソルモードを終了
buffer|color|infolists|memory|tags|term|windows
mouse|cursor [verbose]
hdata [free]
time <command>
list: デバッグレベルの設定されたプラグインをリストアップ
set: プラグインのデバッグレベルを設定
plugin: プラグインの名前 ("core" WeeChat コアを意味する)
level: プラグインのデバッグレベル (0 はデバッグの無効化)
dump: WeeChat ログファイルにメモリダンプを保存 (WeeChat がクラッシュした場合と同じダンプが書き込まれます)
buffer: ログファイルに 16 進値でバッファの内容をダンプ
color: 現在の色ペアに関する情報を表示
cursor: カーソルモードのデバッグを切り替え
dirs: ディレクトリを表示
hdata: hdata に関する情報を表示 (free を付けた場合: メモリから全ての hdata を削除)
hooks: フックに関する情報を表示
infolists: インフォリストに関する情報を表示
libs: 使用中の外部ライブラリに関する情報を表示
memory: メモリ使用量に関する情報を表示
mouse: マウスのデバックを切り替え
tags: 行のタグを表示
term: 端末に関する情報を表示
windows: ウィンドウツリーの情報を表示
list: list plugins with debug levels
set: set debug level for plugin
plugin: name of plugin ("core" for WeeChat core)
level: debug level for plugin (0 = disable debug)
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
buffer: dump buffer content with hexadecimal values in log file
color: display infos about current color pairs
cursor: toggle debug for cursor mode
dirs: display directories
hdata: display infos about hdata (with free: remove all hdata in memory)
hooks: display infos about hooks
infolists: display infos about infolists
libs: display infos about external libraries used
memory: display infos about memory usage
mouse: toggle debug for mouse
tags: display tags for lines
term: display infos about terminal
windows: display windows tree
time: measure time to execute a command or to send text to the current buffer
----
[[command_weechat_eval]]
+23 -21
View File
@@ -218,34 +218,36 @@ Przykłady:
----
[[command_weechat_debug]]
* `+debug+`: kontrola debugu dla rdzenia/wtyczek
* `+debug+`: debug functions
----
/debug list
set <wtyczka> <poziom>
dump [<wtyczka>]
set <plugin> <level>
dump [<plugin>]
buffer|color|infolists|memory|tags|term|windows
mouse|cursor [verbose]
hdata [free]
time <command>
list: wyświetla wtyczki z poziomem debugowania
set: ustawia poziom debugowania dla wtyczki
plugin: nazwa wtyczki ("core" dla rdzenia WeeChat)
poziom: poziom debugowania wtyczki (0 = wyłączony)
dump: zachowuje zrzut pamięci w pliku z logiem WeeChat (taki sam zrzut jest zapisywany podczas awarii WeeChat)
buffer: zrzuca zawartość bufora z wartościami heksadecymalnymi do pliku z logiem
color: wyświetla informacje na temat obecnych par kolorów
cursor: przełącza debugowanie dla trybu kursora
dirs: wyświetla katalogi
hdata: wyświetla informacje o hdata (z free: usuwa wszystkie hdata z pamięci)
hooks: wyświetla informacje o hooks
infolists: wyświetla informacje o infolistach
libs: wyświetla informacje o użytych zewnętrznych bibliotekach
memory: wyświetla informacje o zużyciu pamięci
mouse: przełącza debugowanie myszy
tags: wyświetla tagi dla linii
term: wyświetla informacje o terminalu
windows: wyświetla drzewo okien
list: list plugins with debug levels
set: set debug level for plugin
plugin: name of plugin ("core" for WeeChat core)
level: debug level for plugin (0 = disable debug)
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
buffer: dump buffer content with hexadecimal values in log file
color: display infos about current color pairs
cursor: toggle debug for cursor mode
dirs: display directories
hdata: display infos about hdata (with free: remove all hdata in memory)
hooks: display infos about hooks
infolists: display infos about infolists
libs: display infos about external libraries used
memory: display infos about memory usage
mouse: toggle debug for mouse
tags: display tags for lines
term: display infos about terminal
windows: display windows tree
time: measure time to execute a command or to send text to the current buffer
----
[[command_weechat_eval]]