]> git.saurik.com Git - apple/system_cmds.git/blame - kdprof/TraceFileAction.hpp
system_cmds-670.1.2.tar.gz
[apple/system_cmds.git] / kdprof / TraceFileAction.hpp
CommitLineData
bd6521f0
A
1//
2// TraceFileAction.h
3// kdprof
4//
5// Created by James McIlree on 4/15/13.
6// Copyright (c) 2013 Apple. All rights reserved.
7//
8
9#ifndef __kdprof__TraceFileAction__
10#define __kdprof__TraceFileAction__
11
12class TraceFileAction : public Action {
13 protected:
14 std::string _path;
15
16 public:
17 TraceFileAction(const char* path) : _path(path) {
18 ASSERT(Path::is_file(_path, TRUE), "File must exist");
19 }
20
21 virtual void execute(Globals& globals);
22};
23
24#endif /* defined(__kdprof__TraceFileAction__) */