8064348: Add TraceEvent::is_enabled() for embedded/minimal builds

Reviewed-by: ehelin, sla
This commit is contained in:
Marcus Larsson 2014-11-10 12:13:46 +01:00
parent 894e9e8f87
commit 6e148efe69

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
This code is free software; you can redistribute it and/or modify it
@ -59,6 +59,7 @@ public:
void set_starttime(const Ticks&amp; time) {}
void set_endtime(const Ticks&amp; time) {}
bool should_commit() const { return false; }
static bool is_enabled() { return false; }
void commit() const {}
};