Permalink
Browse files

Fixing scopes, dtrace providers, etc.

  • Loading branch information...
1 parent 657ad96 commit 5556053698b3b2136701b1760e2f5bb07cb6980c @Machx committed Jan 12, 2009
@@ -16,7 +16,6 @@ pid\$target::WaitNextEvent:return
this->eventStr = self->theEvent == 0 ? "Null Event" : self->theEvent == 1 ? "Mouse Down" : self->theEvent == 2 ? "Mouse Up" : self->theEvent == 3 ? "Key Down" : self->theEvent == 4 ? "Key Up" : self->theEvent == 5 ? "Auto Key" : self->theEvent == 6 ? "Update Event" : self->theEvent == 7 ? "Disk Event" : self->theEvent == 8 ? "Activate Event" : self->theEvent == 15 ? "OS Event" : self->theEvent == 23 ? "High Level Event" : "Unknown";
printf("Event Kind: %i Event Type: %s",self->theEvent,this->eventStr);
- ustack();
}</string>
<key>name</key>
<string>Carbon Events</string>
@@ -14,7 +14,6 @@ CoreData\$target:CoreData::EndFaultCacheMiss
{
self-&gt;cacheMissEnd = (vtimestamp - self-&gt; cacheMissStart) / 1000;
printf("Cache Miss Duration: %u",self-&gt;cacheMissEnd);
- ustack();
}
CoreData\$target:CoreData::BeginRelationshipCacheMiss
@@ -28,7 +27,6 @@ CoreData\$target:CoreData::EndRelationshipCacheMiss
{
self-&gt; relationshipCacheMissEnd= (vtimestamp - self-&gt; relationshipCacheMissStart) / 1000;
printf("RCM Duration: %u",self-&gt; relationshipCacheMissEnd);
- ustack();
}</string>
<key>name</key>
<string>Core Data Cache Misses</string>
@@ -14,7 +14,6 @@ CoreData\$target:CoreData::EndFault
{
self-&gt;faultEnd= (vtimestamp - self-&gt;faultStart) / 1000;
printf("Fault Duration: %u",self-&gt;faultEnd);
- ustack();
}
CoreData\$target:CoreData::BeginRelationshipFault
@@ -28,7 +27,6 @@ CoreData\$target:CoreData::EndRelationshipFault
{
self-&gt;relationshipFaultEnd= (vtimestamp - self-&gt;relationshipFaultStart) / 1000;
printf("Relationship Fault Duration: %u",self-&gt;relationshipFaultEnd);
- ustack();
}</string>
<key>name</key>
<string>Core Data Faults</string>
@@ -14,7 +14,6 @@ CoreData\$target:CoreData::EndFetch
{
self-&gt;fetchEnd = (vtimestamp - self-&gt; fetchStart) / 1000;
printf("Fetch Count: %i Duration: %u",arg0,self-&gt;fetchEnd);
- ustack();
}
</string>
@@ -6,6 +6,8 @@
<string>CoreData</string>
<key>name</key>
<string>Core Data Provider</string>
+ <key>scope</key>
+ <string>source.d</string>
<key>uuid</key>
<string>A9DB814D-C716-40B8-8862-F71D40E8CCC1</string>
</dict>
@@ -13,7 +13,6 @@ CoreData\$target:CoreData::EndSave
{
self-&gt;saveEnd = (vtimestamp - self-&gt;saveStart) / 1000;
trace(self-&gt;saveEnd);
- ustack();
}
</string>
@@ -0,0 +1,14 @@
+<?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>dslockstat</string>
+ <key>name</key>
+ <string>DSLockstat Provider</string>
+ <key>scope</key>
+ <string>source.d</string>
+ <key>uuid</key>
+ <string>81C7D9EC-5E52-439C-90A5-F9458AA2B8C3</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>entry</string>
+ <key>name</key>
+ <string>Entry Name</string>
+ <key>scope</key>
+ <string>source.d</string>
+ <key>tabTrigger</key>
+ <string>en</string>
+ <key>uuid</key>
+ <string>6A5498A0-2DC4-4FA7-85C8-512F7FF9555A</string>
+</dict>
+</plist>
@@ -6,6 +6,8 @@
<string>io</string>
<key>name</key>
<string>IO Provider</string>
+ <key>scope</key>
+ <string>source.d</string>
<key>uuid</key>
<string>FCD547A2-8E7D-48A2-838E-3E0AB6D6450F</string>
</dict>
@@ -0,0 +1,14 @@
+<?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>plockstat</string>
+ <key>name</key>
+ <string>Lockstat Provider</string>
+ <key>scope</key>
+ <string>source.d</string>
+ <key>uuid</key>
+ <string>BE3F7F5E-27DC-41EA-AFC5-768AE42785FC</string>
+</dict>
+</plist>
@@ -0,0 +1,14 @@
+<?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>mach_trap</string>
+ <key>name</key>
+ <string>Mach Trap Provider</string>
+ <key>scope</key>
+ <string>source.d</string>
+ <key>uuid</key>
+ <string>8FCDA722-045B-441E-A511-A49A7AD83E0E</string>
+</dict>
+</plist>
@@ -6,6 +6,8 @@
<string>plockstat</string>
<key>name</key>
<string>Plockstat Provider</string>
+ <key>scope</key>
+ <string>source.d</string>
<key>uuid</key>
<string>05C2FA4A-D585-48D0-B186-1EDBF93F1445</string>
</dict>
@@ -0,0 +1,14 @@
+<?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>proc</string>
+ <key>name</key>
+ <string>Proc Provider</string>
+ <key>scope</key>
+ <string>source.d</string>
+ <key>uuid</key>
+ <string>0EC93E4A-A8BA-4EC1-8B9A-40E27A7DD16D</string>
+</dict>
+</plist>
@@ -7,6 +7,8 @@
</string>
<key>name</key>
<string>Profile Provider</string>
+ <key>scope</key>
+ <string>source.d</string>
<key>uuid</key>
<string>3EA6AF4B-7274-4D80-B36A-77D568EBBCA3</string>
</dict>
@@ -0,0 +1,14 @@
+<?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>RegexKit</string>
+ <key>name</key>
+ <string>RegexKit Provider</string>
+ <key>scope</key>
+ <string>source.d</string>
+ <key>uuid</key>
+ <string>09E5BF69-E4B0-47B1-AB30-259DAAC5F611</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>return</string>
+ <key>name</key>
+ <string>Return Name</string>
+ <key>scope</key>
+ <string>source.d</string>
+ <key>tabTrigger</key>
+ <string>re</string>
+ <key>uuid</key>
+ <string>F677DA97-FEA5-4AFA-9189-EC66935FE1B3</string>
+</dict>
+</plist>
@@ -0,0 +1,15 @@
+<?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>mds
+</string>
+ <key>name</key>
+ <string>Spotlight Provider (mds)</string>
+ <key>scope</key>
+ <string>source.d</string>
+ <key>uuid</key>
+ <string>A29115C2-54E4-45EE-A0AF-0EC5B87AC30C</string>
+</dict>
+</plist>
@@ -7,6 +7,8 @@
</string>
<key>name</key>
<string>System Call Provider</string>
+ <key>scope</key>
+ <string>source.d</string>
<key>uuid</key>
<string>13062991-5A4F-42FB-9F6E-90378E10818D</string>
</dict>
@@ -0,0 +1,14 @@
+<?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>vminfo</string>
+ <key>name</key>
+ <string>VMInfo Provider</string>
+ <key>scope</key>
+ <string>source.d</string>
+ <key>uuid</key>
+ <string>C918EEED-A524-425D-ADC8-B566B9BDB5F8</string>
+</dict>
+</plist>
@@ -93,11 +93,18 @@
<string>09D66228-D697-4076-B352-B820C627010B</string>
<string>A9DB814D-C716-40B8-8862-F71D40E8CCC1</string>
<string>05C2FA4A-D585-48D0-B186-1EDBF93F1445</string>
+ <string>BE3F7F5E-27DC-41EA-AFC5-768AE42785FC</string>
<string>13062991-5A4F-42FB-9F6E-90378E10818D</string>
+ <string>C918EEED-A524-425D-ADC8-B566B9BDB5F8</string>
+ <string>0EC93E4A-A8BA-4EC1-8B9A-40E27A7DD16D</string>
+ <string>81C7D9EC-5E52-439C-90A5-F9458AA2B8C3</string>
+ <string>09E5BF69-E4B0-47B1-AB30-259DAAC5F611</string>
+ <string>A29115C2-54E4-45EE-A0AF-0EC5B87AC30C</string>
<string>3EA6AF4B-7274-4D80-B36A-77D568EBBCA3</string>
<string>456782FC-B723-4069-92CF-7309BFA28618</string>
- <string>612813BE-FD95-49F0-BF29-F470619709B4</string>
+ <string>8FCDA722-045B-441E-A511-A49A7AD83E0E</string>
<string>FCD547A2-8E7D-48A2-838E-3E0AB6D6450F</string>
+ <string>612813BE-FD95-49F0-BF29-F470619709B4</string>
</array>
<key>name</key>
<string>List of DTrace Providers</string>
@@ -167,6 +174,15 @@
<string>3EA6AF4B-7274-4D80-B36A-77D568EBBCA3</string>
<string>FCD547A2-8E7D-48A2-838E-3E0AB6D6450F</string>
<string>A9DB814D-C716-40B8-8862-F71D40E8CCC1</string>
+ <string>BE3F7F5E-27DC-41EA-AFC5-768AE42785FC</string>
+ <string>8FCDA722-045B-441E-A511-A49A7AD83E0E</string>
+ <string>C918EEED-A524-425D-ADC8-B566B9BDB5F8</string>
+ <string>0EC93E4A-A8BA-4EC1-8B9A-40E27A7DD16D</string>
+ <string>81C7D9EC-5E52-439C-90A5-F9458AA2B8C3</string>
+ <string>09E5BF69-E4B0-47B1-AB30-259DAAC5F611</string>
+ <string>A29115C2-54E4-45EE-A0AF-0EC5B87AC30C</string>
+ <string>6A5498A0-2DC4-4FA7-85C8-512F7FF9555A</string>
+ <string>F677DA97-FEA5-4AFA-9189-EC66935FE1B3</string>
</array>
<key>uuid</key>
<string>B888B218-9074-4744-8373-A3965D373883</string>
View
@@ -1,6 +1,13 @@
This is a bundle for TextMate that adds the D Scripting language for DTrace and several useful DTrace scripts to TextMate. See the "Wiki" section at the top of the page for a more detailed explanation as to what works and what doesn't work right now.
+What's Changed since 1.0 Beta 2?
+[FIX] Removed Redundant ustack() calls inside the Core Data Snippets
+[FIX] One of the recently added DTrace providers still had boiler text there for some reason, changed this to the provider name
+[FIX] Added the scope ( source.d ) to the newly added DTrace providers that were lacking any scope
+[CHANGED] Changed "D Script" to just "D", screw the other D :P
+
What's changed since 1.0 Beta 1?
+[ADDED] List of DTrace Providers
[FIX] Target's Trigger (keyboard shortcut "\") has been removed
[FIX] "$target" instead of just "target" is recognized as a DTrace keyword
[FIX] Many snippets had "source.d," as the scope instead of just "source.d" which meant that the tab triggers extended into any TextMate Document

0 comments on commit 5556053

Please sign in to comment.