delete C++ code for first memory warning
This commit is contained in:
parent
68c97da518
commit
8e8cea1bcd
@ -33,24 +33,6 @@ namespace
|
|||||||
|
|
||||||
namespace ix
|
namespace ix
|
||||||
{
|
{
|
||||||
bool processMemoryWarningsMetricsEvent(const Json::Value& msg,
|
|
||||||
StatsdClient& statsdClient)
|
|
||||||
{
|
|
||||||
auto startTime = msg["device"]["start_time"].asUInt64();
|
|
||||||
auto timestamp = msg["timestamp"].asUInt64();
|
|
||||||
auto game = msg["device"]["game"].asString();
|
|
||||||
|
|
||||||
std::stringstream ss;
|
|
||||||
ss << msg["id"].asString() << "."
|
|
||||||
<< game;
|
|
||||||
|
|
||||||
std::string id = ss.str();
|
|
||||||
|
|
||||||
statsdClient.timing(id, (timestamp - startTime) / 1000);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool processNetRequestMetricsEvent(const Json::Value& msg,
|
bool processNetRequestMetricsEvent(const Json::Value& msg,
|
||||||
StatsdClient& statsdClient)
|
StatsdClient& statsdClient)
|
||||||
{
|
{
|
||||||
@ -232,10 +214,6 @@ namespace ix
|
|||||||
{
|
{
|
||||||
success = processNetRequestMetricsEvent(msg, statsdClient);
|
success = processNetRequestMetricsEvent(msg, statsdClient);
|
||||||
}
|
}
|
||||||
else if (msg["id"].asString() == "engine_memory_warning_id")
|
|
||||||
{
|
|
||||||
success = processMemoryWarningsMetricsEvent(msg, statsdClient);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (success) sentCount++;
|
if (success) sentCount++;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user