Browse files

Initial Commit

  • Loading branch information...
0 parents commit 1086e61bd0b635f23d0392e410f9b42dea06c0a5 @Machx committed Jan 7, 2009
Showing with 843 additions and 0 deletions.
  1. +26 −0 DTrace.tmbundle/Commands/Create Mirror Return Block for Entry Block.tmCommand
  2. +22 −0 DTrace.tmbundle/Commands/Run Script in Terminal.tmCommand
  3. +16 −0 DTrace.tmbundle/Snippets/Add Predicate.tmSnippet
  4. +19 −0 DTrace.tmbundle/Snippets/BEGIN Block.tmSnippet
  5. +30 −0 DTrace.tmbundle/Snippets/Carbon Events.tmSnippet
  6. +30 −0 DTrace.tmbundle/Snippets/Cocoa Events.tmSnippet
  7. +30 −0 DTrace.tmbundle/Snippets/Core Data Cache Misses.tmSnippet
  8. +30 −0 DTrace.tmbundle/Snippets/Core Data Faults.tmSnippet
  9. +30 −0 DTrace.tmbundle/Snippets/Core Data Fetches.tmSnippet
  10. +30 −0 DTrace.tmbundle/Snippets/Core Data Saves.tmSnippet
  11. +16 −0 DTrace.tmbundle/Snippets/Create Probe.tmSnippet
  12. +19 −0 DTrace.tmbundle/Snippets/Create USDT Provider File.tmSnippet
  13. +20 −0 DTrace.tmbundle/Snippets/END Block.tmSnippet
  14. +19 −0 DTrace.tmbundle/Snippets/Empty Block.tmSnippet
  15. +17 −0 DTrace.tmbundle/Snippets/Flowindent Option.tmSnippet
  16. +30 −0 DTrace.tmbundle/Snippets/Garbage Collection Scavenge Data.tmSnippet
  17. +30 −0 DTrace.tmbundle/Snippets/Garbage Collection Total.tmSnippet
  18. +23 −0 DTrace.tmbundle/Snippets/Objective-C Target Block.tmSnippet
  19. +21 −0 DTrace.tmbundle/Snippets/PID Target Block.tmSnippet
  20. +16 −0 DTrace.tmbundle/Snippets/Printf.tmSnippet
  21. +16 −0 DTrace.tmbundle/Snippets/Probe Function.tmSnippet
  22. +16 −0 DTrace.tmbundle/Snippets/Probe Module.tmSnippet
  23. +16 −0 DTrace.tmbundle/Snippets/Probe Name.tmSnippet
  24. +16 −0 DTrace.tmbundle/Snippets/Probe Provider.tmSnippet
  25. +17 −0 DTrace.tmbundle/Snippets/Quiet Option.tmSnippet
  26. +18 −0 DTrace.tmbundle/Snippets/Script Initialization.tmSnippet
  27. +16 −0 DTrace.tmbundle/Snippets/Script Local Variable.tmSnippet
  28. +16 −0 DTrace.tmbundle/Snippets/Target.tmSnippet
  29. +16 −0 DTrace.tmbundle/Snippets/Thread Local Variable.tmSnippet
  30. +16 −0 DTrace.tmbundle/Snippets/Trace.tmSnippet
  31. +73 −0 DTrace.tmbundle/Syntaxes/D Script.tmLanguage
  32. +18 −0 DTrace.tmbundle/Templates/USDT Provider Template.tmTemplate/info.plist
  33. +4 −0 DTrace.tmbundle/Templates/USDT Provider Template.tmTemplate/usdt.d
  34. +108 −0 DTrace.tmbundle/info.plist
  35. +3 −0 README
26 DTrace.tmbundle/Commands/Create Mirror Return Block for Entry Block.tmCommand
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string># just to remind you of some useful environment variables
+# see Help / Environment Variables for the full list
+echo File: "$TM_FILEPATH"
+echo Word: "$TM_CURRENT_WORD"
+echo Selection: "$TM_SELECTED_TEXT"</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string>~@m</string>
+ <key>name</key>
+ <string>Create Mirror Return Block for Entry Block</string>
+ <key>output</key>
+ <string>replaceSelectedText</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>uuid</key>
+ <string>3CDF6C76-AED6-4E38-88AE-A02EBD3AE62E</string>
+</dict>
+</plist>
22 DTrace.tmbundle/Commands/Run Script in Terminal.tmCommand
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>nop</string>
+ <key>command</key>
+ <string># just to remind you of some useful environment variables
+# see Help / Environment Variables for the full list
+echo File: "$TM_FILEPATH"
+echo Word: "$TM_CURRENT_WORD"
+echo Selection: "$TM_SELECTED_TEXT"</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>name</key>
+ <string>Run Script in Terminal</string>
+ <key>output</key>
+ <string>replaceSelectedText</string>
+ <key>uuid</key>
+ <string>D2E2A3AF-9E53-4074-84A3-52CEA8257DB1</string>
+</dict>
+</plist>
16 DTrace.tmbundle/Snippets/Add Predicate.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>/$1/</string>
+ <key>name</key>
+ <string>Add Predicate</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>pr</string>
+ <key>uuid</key>
+ <string>0A427DD1-6660-422A-A168-4FA296838E66</string>
+</dict>
+</plist>
19 DTrace.tmbundle/Snippets/BEGIN Block.tmSnippet
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>BEGIN
+{
+ $1
+}</string>
+ <key>name</key>
+ <string>BEGIN Block</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>bb</string>
+ <key>uuid</key>
+ <string>AE60A74C-F91D-423A-AAAA-86EE0C8D71B2</string>
+</dict>
+</plist>
30 DTrace.tmbundle/Snippets/Carbon Events.tmSnippet
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>Syntax Summary:
+
+ Variables $TM_FILENAME, $TM_SELECTED_TEXT
+ Fallback Values ${TM_SELECTED_TEXT:$TM_CURRENT_WORD}
+ Substitutions ${TM_FILENAME/.*/\U$0/}
+
+ Tab Stops $1, $2, $3, … $0 (optional)
+ Placeholders ${1:default value}
+ Mirrors &lt;${2:tag}&gt;&lt;/$2&gt;
+ Transformations &lt;${3:tag}&gt;&lt;/${3/(\w*).*/\U$1/}&gt;
+
+ Shell Code `date`, `pwd`
+
+ Escape Codes \$ \` \\
+</string>
+ <key>name</key>
+ <string>Carbon Events</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>caev</string>
+ <key>uuid</key>
+ <string>9F2B4569-F2C9-4818-B5F6-DC199CC49D94</string>
+</dict>
+</plist>
30 DTrace.tmbundle/Snippets/Cocoa Events.tmSnippet
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>Syntax Summary:
+
+ Variables $TM_FILENAME, $TM_SELECTED_TEXT
+ Fallback Values ${TM_SELECTED_TEXT:$TM_CURRENT_WORD}
+ Substitutions ${TM_FILENAME/.*/\U$0/}
+
+ Tab Stops $1, $2, $3, … $0 (optional)
+ Placeholders ${1:default value}
+ Mirrors &lt;${2:tag}&gt;&lt;/$2&gt;
+ Transformations &lt;${3:tag}&gt;&lt;/${3/(\w*).*/\U$1/}&gt;
+
+ Shell Code `date`, `pwd`
+
+ Escape Codes \$ \` \\
+</string>
+ <key>name</key>
+ <string>Cocoa Events</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>coev</string>
+ <key>uuid</key>
+ <string>718E1C2D-304F-49E3-ACA2-4EE3EC64EE6E</string>
+</dict>
+</plist>
30 DTrace.tmbundle/Snippets/Core Data Cache Misses.tmSnippet
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>Syntax Summary:
+
+ Variables $TM_FILENAME, $TM_SELECTED_TEXT
+ Fallback Values ${TM_SELECTED_TEXT:$TM_CURRENT_WORD}
+ Substitutions ${TM_FILENAME/.*/\U$0/}
+
+ Tab Stops $1, $2, $3, … $0 (optional)
+ Placeholders ${1:default value}
+ Mirrors &lt;${2:tag}&gt;&lt;/$2&gt;
+ Transformations &lt;${3:tag}&gt;&lt;/${3/(\w*).*/\U$1/}&gt;
+
+ Shell Code `date`, `pwd`
+
+ Escape Codes \$ \` \\
+</string>
+ <key>name</key>
+ <string>Core Data Cache Misses</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>cdcm</string>
+ <key>uuid</key>
+ <string>896618D0-C5C3-4DEB-BC47-4DED0B045BBD</string>
+</dict>
+</plist>
30 DTrace.tmbundle/Snippets/Core Data Faults.tmSnippet
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>Syntax Summary:
+
+ Variables $TM_FILENAME, $TM_SELECTED_TEXT
+ Fallback Values ${TM_SELECTED_TEXT:$TM_CURRENT_WORD}
+ Substitutions ${TM_FILENAME/.*/\U$0/}
+
+ Tab Stops $1, $2, $3, … $0 (optional)
+ Placeholders ${1:default value}
+ Mirrors &lt;${2:tag}&gt;&lt;/$2&gt;
+ Transformations &lt;${3:tag}&gt;&lt;/${3/(\w*).*/\U$1/}&gt;
+
+ Shell Code `date`, `pwd`
+
+ Escape Codes \$ \` \\
+</string>
+ <key>name</key>
+ <string>Core Data Faults</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>cdfa</string>
+ <key>uuid</key>
+ <string>443D9794-5939-48FE-9983-C0B9FEE0A4CE</string>
+</dict>
+</plist>
30 DTrace.tmbundle/Snippets/Core Data Fetches.tmSnippet
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>Syntax Summary:
+
+ Variables $TM_FILENAME, $TM_SELECTED_TEXT
+ Fallback Values ${TM_SELECTED_TEXT:$TM_CURRENT_WORD}
+ Substitutions ${TM_FILENAME/.*/\U$0/}
+
+ Tab Stops $1, $2, $3, … $0 (optional)
+ Placeholders ${1:default value}
+ Mirrors &lt;${2:tag}&gt;&lt;/$2&gt;
+ Transformations &lt;${3:tag}&gt;&lt;/${3/(\w*).*/\U$1/}&gt;
+
+ Shell Code `date`, `pwd`
+
+ Escape Codes \$ \` \\
+</string>
+ <key>name</key>
+ <string>Core Data Fetches</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>cdfe</string>
+ <key>uuid</key>
+ <string>0E651AF4-7FA2-4484-B076-C07FC5760BAD</string>
+</dict>
+</plist>
30 DTrace.tmbundle/Snippets/Core Data Saves.tmSnippet
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>Syntax Summary:
+
+ Variables $TM_FILENAME, $TM_SELECTED_TEXT
+ Fallback Values ${TM_SELECTED_TEXT:$TM_CURRENT_WORD}
+ Substitutions ${TM_FILENAME/.*/\U$0/}
+
+ Tab Stops $1, $2, $3, … $0 (optional)
+ Placeholders ${1:default value}
+ Mirrors &lt;${2:tag}&gt;&lt;/$2&gt;
+ Transformations &lt;${3:tag}&gt;&lt;/${3/(\w*).*/\U$1/}&gt;
+
+ Shell Code `date`, `pwd`
+
+ Escape Codes \$ \` \\
+</string>
+ <key>name</key>
+ <string>Core Data Saves</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>cds</string>
+ <key>uuid</key>
+ <string>3B6C1576-5838-4C18-AA1A-6E7F928A6EDA</string>
+</dict>
+</plist>
16 DTrace.tmbundle/Snippets/Create Probe.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>probe $1($2);</string>
+ <key>name</key>
+ <string>Create Probe</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>pro</string>
+ <key>uuid</key>
+ <string>A86DE8F4-DF6A-4F12-AA14-4722BFDB750C</string>
+</dict>
+</plist>
19 DTrace.tmbundle/Snippets/Create USDT Provider File.tmSnippet
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>provider $1 {
+ probe $2($3);
+};
+</string>
+ <key>name</key>
+ <string>Create USDT Provider File</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>usdt</string>
+ <key>uuid</key>
+ <string>7F27E5B4-9447-418B-A7AC-981A0966F1A1</string>
+</dict>
+</plist>
20 DTrace.tmbundle/Snippets/END Block.tmSnippet
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>END
+{
+ $1
+}
+</string>
+ <key>name</key>
+ <string>END Block</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>eb</string>
+ <key>uuid</key>
+ <string>1B0380F3-328D-4087-8310-BB9F2B0F4823</string>
+</dict>
+</plist>
19 DTrace.tmbundle/Snippets/Empty Block.tmSnippet
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>$1:$2:$3:$4
+{
+ $5
+}</string>
+ <key>name</key>
+ <string>Empty Block</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>db</string>
+ <key>uuid</key>
+ <string>E685631E-4F9C-4B84-AB47-2F44640C70A9</string>
+</dict>
+</plist>
17 DTrace.tmbundle/Snippets/Flowindent Option.tmSnippet
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>#pragma D option flowindent
+</string>
+ <key>name</key>
+ <string>Flowindent Option</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>fi</string>
+ <key>uuid</key>
+ <string>EF9F1209-FBEF-4E04-8A36-176DC87A98A7</string>
+</dict>
+</plist>
30 DTrace.tmbundle/Snippets/Garbage Collection Scavenge Data.tmSnippet
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>Syntax Summary:
+
+ Variables $TM_FILENAME, $TM_SELECTED_TEXT
+ Fallback Values ${TM_SELECTED_TEXT:$TM_CURRENT_WORD}
+ Substitutions ${TM_FILENAME/.*/\U$0/}
+
+ Tab Stops $1, $2, $3, … $0 (optional)
+ Placeholders ${1:default value}
+ Mirrors &lt;${2:tag}&gt;&lt;/$2&gt;
+ Transformations &lt;${3:tag}&gt;&lt;/${3/(\w*).*/\U$1/}&gt;
+
+ Shell Code `date`, `pwd`
+
+ Escape Codes \$ \` \\
+</string>
+ <key>name</key>
+ <string>Garbage Collection Scavenge Data</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>gcs</string>
+ <key>uuid</key>
+ <string>61CF5156-121E-4396-9572-FE8078BCCC30</string>
+</dict>
+</plist>
30 DTrace.tmbundle/Snippets/Garbage Collection Total.tmSnippet
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>Syntax Summary:
+
+ Variables $TM_FILENAME, $TM_SELECTED_TEXT
+ Fallback Values ${TM_SELECTED_TEXT:$TM_CURRENT_WORD}
+ Substitutions ${TM_FILENAME/.*/\U$0/}
+
+ Tab Stops $1, $2, $3, … $0 (optional)
+ Placeholders ${1:default value}
+ Mirrors &lt;${2:tag}&gt;&lt;/$2&gt;
+ Transformations &lt;${3:tag}&gt;&lt;/${3/(\w*).*/\U$1/}&gt;
+
+ Shell Code `date`, `pwd`
+
+ Escape Codes \$ \` \\
+</string>
+ <key>name</key>
+ <string>Garbage Collection Total</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>gct</string>
+ <key>uuid</key>
+ <string>CC3F4EBE-A763-4AD9-9170-E6D49041F0BE</string>
+</dict>
+</plist>
23 DTrace.tmbundle/Snippets/Objective-C Target Block.tmSnippet
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>objc\$target:$1:$2:$3
+{
+ $4
+}
+
+</string>
+ <key>keyEquivalent</key>
+ <string>~@t</string>
+ <key>name</key>
+ <string>Objective-C Target Block</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>ot</string>
+ <key>uuid</key>
+ <string>29C1CED5-01E7-4D3F-8B62-165134AEFA58</string>
+</dict>
+</plist>
21 DTrace.tmbundle/Snippets/PID Target Block.tmSnippet
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>pid\$target:$1:$2:$3
+{
+ $4
+}</string>
+ <key>keyEquivalent</key>
+ <string>~@t</string>
+ <key>name</key>
+ <string>PID Target Block</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>pt</string>
+ <key>uuid</key>
+ <string>61693237-CCE1-46A8-A5E6-60BC1B532127</string>
+</dict>
+</plist>
16 DTrace.tmbundle/Snippets/Printf.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>printf("$1",$2);</string>
+ <key>name</key>
+ <string>Printf</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>pf</string>
+ <key>uuid</key>
+ <string>9CB0777E-81A4-4D3F-A4B6-1AF40FB118A5</string>
+</dict>
+</plist>
16 DTrace.tmbundle/Snippets/Probe Function.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>probemod</string>
+ <key>name</key>
+ <string>Probe Function</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>pf</string>
+ <key>uuid</key>
+ <string>EF3BCC0A-EB19-4697-AF54-588371206AF5</string>
+</dict>
+</plist>
16 DTrace.tmbundle/Snippets/Probe Module.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>probemod</string>
+ <key>name</key>
+ <string>Probe Module</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>pm</string>
+ <key>uuid</key>
+ <string>E4CF7202-C91D-46E6-BFE2-ECFE24FA7D6E</string>
+</dict>
+</plist>
16 DTrace.tmbundle/Snippets/Probe Name.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>probename</string>
+ <key>name</key>
+ <string>Probe Name</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>pn</string>
+ <key>uuid</key>
+ <string>C278E2B6-6CC3-4BD7-9D8A-6E9DBB16C777</string>
+</dict>
+</plist>
16 DTrace.tmbundle/Snippets/Probe Provider.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>probeprov</string>
+ <key>name</key>
+ <string>Probe Provider</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>pp</string>
+ <key>uuid</key>
+ <string>96E84FB5-996D-49FB-B374-70DD2E8A3883</string>
+</dict>
+</plist>
17 DTrace.tmbundle/Snippets/Quiet Option.tmSnippet
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>#pragma D option quiet
+</string>
+ <key>name</key>
+ <string>Quiet Option</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>qo</string>
+ <key>uuid</key>
+ <string>57AD440D-9A4B-45CD-BFBA-1AF143CB66EF</string>
+</dict>
+</plist>
18 DTrace.tmbundle/Snippets/Script Initialization.tmSnippet
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>#!/usr/sbin/dtrace -s
+
+</string>
+ <key>name</key>
+ <string>Script Initialization</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>ss</string>
+ <key>uuid</key>
+ <string>ECC87F8F-747C-4B95-B566-EE8C61B578CA</string>
+</dict>
+</plist>
16 DTrace.tmbundle/Snippets/Script Local Variable.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>this-&gt;</string>
+ <key>name</key>
+ <string>Script Local Variable</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>sv</string>
+ <key>uuid</key>
+ <string>B26E395A-7E7A-4C9D-B518-C22F0725FBA8</string>
+</dict>
+</plist>
16 DTrace.tmbundle/Snippets/Target.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>\$target</string>
+ <key>keyEquivalent</key>
+ <string>\</string>
+ <key>name</key>
+ <string>Target</string>
+ <key>tabTrigger</key>
+ <string>tar</string>
+ <key>uuid</key>
+ <string>62C23272-9786-4290-8B6D-D28E57DE4152</string>
+</dict>
+</plist>
16 DTrace.tmbundle/Snippets/Thread Local Variable.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>self-&gt;</string>
+ <key>name</key>
+ <string>Thread Local Variable</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>tv</string>
+ <key>uuid</key>
+ <string>A1D5BBCF-6FC2-41A9-867D-18BC9B42A599</string>
+</dict>
+</plist>
16 DTrace.tmbundle/Snippets/Trace.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>trace($1);</string>
+ <key>name</key>
+ <string>Trace</string>
+ <key>scope</key>
+ <string>source.d,</string>
+ <key>tabTrigger</key>
+ <string>tr</string>
+ <key>uuid</key>
+ <string>7D9C71BE-950D-4849-8CDC-CBFCE15A4F94</string>
+</dict>
+</plist>
73 DTrace.tmbundle/Syntaxes/D Script.tmLanguage
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>fileTypes</key>
+ <array>
+ <string>d</string>
+ </array>
+ <key>foldingStartMarker</key>
+ <string>/\*\*|\{\s*$</string>
+ <key>foldingStopMarker</key>
+ <string>\*\*/|^\s*\}</string>
+ <key>keyEquivalent</key>
+ <string>^~D</string>
+ <key>name</key>
+ <string>D Script</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>\b(return|target|BEGIN|END|begin|end|entry|option|flowindent|quiet|self|ustack|objc|pid|pidlockstat|pragma|trace|provider|probe|this)\b</string>
+ <key>name</key>
+ <string>keyword.control.d</string>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>"</string>
+ <key>end</key>
+ <string>"</string>
+ <key>name</key>
+ <string>string.quoted.double.d</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>\\.</string>
+ <key>name</key>
+ <string>constant.character.escape.d</string>
+ </dict>
+ <dict>
+ <key>begin</key>
+ <string>//</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.comment.d</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>$\n?</string>
+ <key>name</key>
+ <string>comment.line.double-slash.d</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>(?&gt;\\\s*\n)</string>
+ <key>name</key>
+ <string>punctuation.separator.continuation.d</string>
+ </dict>
+ </array>
+ </dict>
+ </array>
+ </dict>
+ </array>
+ <key>scopeName</key>
+ <string>source.d</string>
+ <key>uuid</key>
+ <string>DF242A2B-B035-4797-B4CA-DF9B011A2146</string>
+</dict>
+</plist>
18 DTrace.tmbundle/Templates/USDT Provider Template.tmTemplate/info.plist
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>command</key>
+ <string>cat usdt.d&gt; "$TM_NEW_FILE"</string>
+ <key>extension</key>
+ <string>d</string>
+ <key>keyEquivalent</key>
+ <string>@`</string>
+ <key>name</key>
+ <string>USDT Provider Template</string>
+ <key>scope</key>
+ <string>text.d</string>
+ <key>uuid</key>
+ <string>455FA245-83FB-452E-ADFE-2EE898E35B74</string>
+</dict>
+</plist>
4 DTrace.tmbundle/Templates/USDT Provider Template.tmTemplate/usdt.d
@@ -0,0 +1,4 @@
+
+provider MyProvider {
+ probe probename();
+};
108 DTrace.tmbundle/info.plist
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>mainMenu</key>
+ <dict>
+ <key>items</key>
+ <array>
+ <string>ECC87F8F-747C-4B95-B566-EE8C61B578CA</string>
+ <string>------------------------------------</string>
+ <string>57AD440D-9A4B-45CD-BFBA-1AF143CB66EF</string>
+ <string>EF9F1209-FBEF-4E04-8A36-176DC87A98A7</string>
+ <string>------------------------------------</string>
+ <string>AE60A74C-F91D-423A-AAAA-86EE0C8D71B2</string>
+ <string>1B0380F3-328D-4087-8310-BB9F2B0F4823</string>
+ <string>E685631E-4F9C-4B84-AB47-2F44640C70A9</string>
+ <string>29C1CED5-01E7-4D3F-8B62-165134AEFA58</string>
+ <string>61693237-CCE1-46A8-A5E6-60BC1B532127</string>
+ <string>3CDF6C76-AED6-4E38-88AE-A02EBD3AE62E</string>
+ <string>------------------------------------</string>
+ <string>A1D5BBCF-6FC2-41A9-867D-18BC9B42A599</string>
+ <string>B26E395A-7E7A-4C9D-B518-C22F0725FBA8</string>
+ <string>0A427DD1-6660-422A-A168-4FA296838E66</string>
+ <string>62C23272-9786-4290-8B6D-D28E57DE4152</string>
+ <string>------------------------------------</string>
+ <string>96E84FB5-996D-49FB-B374-70DD2E8A3883</string>
+ <string>E4CF7202-C91D-46E6-BFE2-ECFE24FA7D6E</string>
+ <string>EF3BCC0A-EB19-4697-AF54-588371206AF5</string>
+ <string>C278E2B6-6CC3-4BD7-9D8A-6E9DBB16C777</string>
+ <string>72E90322-D036-459D-A11E-F732CF55F077</string>
+ <string>------------------------------------</string>
+ <string>7D9C71BE-950D-4849-8CDC-CBFCE15A4F94</string>
+ <string>9CB0777E-81A4-4D3F-A4B6-1AF40FB118A5</string>
+ <string>------------------------------------</string>
+ <string>3B6C1576-5838-4C18-AA1A-6E7F928A6EDA</string>
+ <string>0E651AF4-7FA2-4484-B076-C07FC5760BAD</string>
+ <string>443D9794-5939-48FE-9983-C0B9FEE0A4CE</string>
+ <string>896618D0-C5C3-4DEB-BC47-4DED0B045BBD</string>
+ <string>------------------------------------</string>
+ <string>CC3F4EBE-A763-4AD9-9170-E6D49041F0BE</string>
+ <string>61CF5156-121E-4396-9572-FE8078BCCC30</string>
+ <string>------------------------------------</string>
+ <string>718E1C2D-304F-49E3-ACA2-4EE3EC64EE6E</string>
+ <string>9F2B4569-F2C9-4818-B5F6-DC199CC49D94</string>
+ <string>------------------------------------</string>
+ <string>7F27E5B4-9447-418B-A7AC-981A0966F1A1</string>
+ <string>A86DE8F4-DF6A-4F12-AA14-4722BFDB750C</string>
+ <string>------------------------------------</string>
+ <string>3AB83EE4-B21E-4B0A-A92E-377CB9217EFA</string>
+ </array>
+ <key>submenus</key>
+ <dict>
+ <key>3AB83EE4-B21E-4B0A-A92E-377CB9217EFA</key>
+ <dict>
+ <key>items</key>
+ <array/>
+ <key>name</key>
+ <string>More Mac OS X D Scripts</string>
+ </dict>
+ <key>72E90322-D036-459D-A11E-F732CF55F077</key>
+ <dict>
+ <key>items</key>
+ <array/>
+ <key>name</key>
+ <string>More DTrace Keywords</string>
+ </dict>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>DTrace</string>
+ <key>ordering</key>
+ <array>
+ <string>DF242A2B-B035-4797-B4CA-DF9B011A2146</string>
+ <string>ECC87F8F-747C-4B95-B566-EE8C61B578CA</string>
+ <string>57AD440D-9A4B-45CD-BFBA-1AF143CB66EF</string>
+ <string>EF9F1209-FBEF-4E04-8A36-176DC87A98A7</string>
+ <string>E685631E-4F9C-4B84-AB47-2F44640C70A9</string>
+ <string>AE60A74C-F91D-423A-AAAA-86EE0C8D71B2</string>
+ <string>1B0380F3-328D-4087-8310-BB9F2B0F4823</string>
+ <string>62C23272-9786-4290-8B6D-D28E57DE4152</string>
+ <string>96E84FB5-996D-49FB-B374-70DD2E8A3883</string>
+ <string>E4CF7202-C91D-46E6-BFE2-ECFE24FA7D6E</string>
+ <string>EF3BCC0A-EB19-4697-AF54-588371206AF5</string>
+ <string>C278E2B6-6CC3-4BD7-9D8A-6E9DBB16C777</string>
+ <string>0A427DD1-6660-422A-A168-4FA296838E66</string>
+ <string>29C1CED5-01E7-4D3F-8B62-165134AEFA58</string>
+ <string>7D9C71BE-950D-4849-8CDC-CBFCE15A4F94</string>
+ <string>9CB0777E-81A4-4D3F-A4B6-1AF40FB118A5</string>
+ <string>61693237-CCE1-46A8-A5E6-60BC1B532127</string>
+ <string>A1D5BBCF-6FC2-41A9-867D-18BC9B42A599</string>
+ <string>B26E395A-7E7A-4C9D-B518-C22F0725FBA8</string>
+ <string>3CDF6C76-AED6-4E38-88AE-A02EBD3AE62E</string>
+ <string>3B6C1576-5838-4C18-AA1A-6E7F928A6EDA</string>
+ <string>0E651AF4-7FA2-4484-B076-C07FC5760BAD</string>
+ <string>443D9794-5939-48FE-9983-C0B9FEE0A4CE</string>
+ <string>896618D0-C5C3-4DEB-BC47-4DED0B045BBD</string>
+ <string>CC3F4EBE-A763-4AD9-9170-E6D49041F0BE</string>
+ <string>61CF5156-121E-4396-9572-FE8078BCCC30</string>
+ <string>718E1C2D-304F-49E3-ACA2-4EE3EC64EE6E</string>
+ <string>9F2B4569-F2C9-4818-B5F6-DC199CC49D94</string>
+ <string>7F27E5B4-9447-418B-A7AC-981A0966F1A1</string>
+ <string>A86DE8F4-DF6A-4F12-AA14-4722BFDB750C</string>
+ <string>455FA245-83FB-452E-ADFE-2EE898E35B74</string>
+ </array>
+ <key>uuid</key>
+ <string>B888B218-9074-4744-8373-A3965D373883</string>
+</dict>
+</plist>
3 README
@@ -0,0 +1,3 @@
+THIS IS AN INITIAL VERSION OF THE DTRACE BUNDLE
+AS I GET MORE FEATURES/MENU ITEMS WORKING I WILL
+ADD THEM TO THIS REPOSITORY

0 comments on commit 1086e61

Please sign in to comment.