diff options
author | dakkar <dakkar@thenautilus.net> | 2019-12-27 17:18:10 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2019-12-27 17:18:10 +0000 |
commit | 42d176c71218f2daac666ce3f254356b8798dc68 (patch) | |
tree | 1438f8562c04328fd04e1d09bea8b23df9cf0340 /lib/MaildirIndexer/LogTimelineSchema.pm6 | |
parent | types in Store (diff) | |
download | MaildirIndexer-42d176c71218f2daac666ce3f254356b8798dc68.tar.gz MaildirIndexer-42d176c71218f2daac666ce3f254356b8798dc68.tar.bz2 MaildirIndexer-42d176c71218f2daac666ce3f254356b8798dc68.zip |
Log::Timeline
apparently reading from the socket is the slowest bit
Diffstat (limited to 'lib/MaildirIndexer/LogTimelineSchema.pm6')
-rw-r--r-- | lib/MaildirIndexer/LogTimelineSchema.pm6 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/MaildirIndexer/LogTimelineSchema.pm6 b/lib/MaildirIndexer/LogTimelineSchema.pm6 new file mode 100644 index 0000000..1e1848f --- /dev/null +++ b/lib/MaildirIndexer/LogTimelineSchema.pm6 @@ -0,0 +1,20 @@ +use v6.d; +unit module MaildirIndexer::LogTimelineSchema; +use Log::Timeline; + +class Store::Add does Log::Timeline::Task['MaildirIndexer','Store','add file'] { }; +class Store::Rm does Log::Timeline::Task['MaildirIndexer','Store','rm file'] { }; +class Store::Find does Log::Timeline::Task['MaildirIndexer','Store','finding mailbox'] { }; + +class Parse::Email::Str does Log::Timeline::Task['MaildirIndexer','Parser','parsing a string'] { }; +class Parse::Email::File does Log::Timeline::Task['MaildirIndexer','Parser','parsing a file'] { }; +class Parse::Email::Socket does Log::Timeline::Task['MaildirIndexer','Parser','parsing a socket'] { }; + +class Parse::Header does Log::Timeline::Task['MaildirIndexer','Email','parsing a header'] { }; + +class Index::Add does Log::Timeline::Task['MaildirIndexer','Index','add email'] { }; +class Index::Rm does Log::Timeline::Task['MaildirIndexer','Index','rm path'] { }; + +class Index::Find does Log::Timeline::Task['MaildirIndexer','Index','finding mailbox'] { }; + +class Server::Serve does Log::Timeline::Task['MaildirIndexer','Server','serving a request'] { }; |