Permalink
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
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
@@ -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>
Oops, something went wrong.

0 comments on commit 1086e61

Please sign in to comment.