X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/1a7e3f61d38d679bba59130891c2031b5a0092b6..bd6521f0fc816ab056bc71376f9706a69b3b52c1:/kdprof/TraceFileAction.hpp diff --git a/kdprof/TraceFileAction.hpp b/kdprof/TraceFileAction.hpp new file mode 100644 index 0000000..b91d369 --- /dev/null +++ b/kdprof/TraceFileAction.hpp @@ -0,0 +1,24 @@ +// +// TraceFileAction.h +// kdprof +// +// Created by James McIlree on 4/15/13. +// Copyright (c) 2013 Apple. All rights reserved. +// + +#ifndef __kdprof__TraceFileAction__ +#define __kdprof__TraceFileAction__ + +class TraceFileAction : public Action { + protected: + std::string _path; + + public: + TraceFileAction(const char* path) : _path(path) { + ASSERT(Path::is_file(_path, TRUE), "File must exist"); + } + + virtual void execute(Globals& globals); +}; + +#endif /* defined(__kdprof__TraceFileAction__) */