35 : ion::remote::
HttpServer::RequestHandler(
"/ion/calltrace") {
36 IonRemoteCallTraceRoot::RegisterAssetsOnce();
43 std::string* content_type) {
44 const std::string path = path_in.empty() ?
"index.html" : path_in;
46 if (path ==
"call.wtf-trace") {
47 *content_type =
"application/x-extension-wtf-trace";
51 const std::string& data =
56 *content_type =
"text/html";
bool IsInvalidReference(const T &value)
IsInvalidReference() returns true if a passed const reference of type T has an address of InvalidRefe...
ION_REGISTER_ASSETS(IonRemoteCallTraceRoot)
Copyright 2016 Google Inc.
CallTraceManager * GetCallTraceManager()
Get the global, static instance of CallTraceManager.
static const std::string & GetFileData(const std::string &filename)
Returns the data of the passed filename if the manager contains it.
const std::string HandleRequest(const std::string &path_in, const ion::remote::HttpServer::QueryMap &args, std::string *content_type) override
The HandleRequest() function is passed the path (relative to its base path) of the file or directory ...
~CallTraceHandler() override
std::string SnapshotCallTraces() const
Returns a snapshot of traces to a string in binary .wtf-trace format.
bool EndsWith(const std::string &target, const std::string &end)
Returns whether target ends with end.
Manages call trace recording for visualization in Web Tracing Framework (WTF) format.
std::map< std::string, std::string > QueryMap