Meteor app with StrongLoop

You have successfully applied the Meteor application with StrongOps and tried the profiling function of the CPU.

Using Meteor.require (strong-agent). Profile()

instead

required ("strong-agent") profile (); ..

works for everything else except profiling functions.

+4
source share
1 answer

"require()" Meteor, Node.js. Meteor "Npm.require()" Meteor. "Meteor.require()" , meteor-npm npm npm Meteor. http://meteorpedia.com/read/npm

StrongOps Meteor, Meteor Npm.require() . :

// require strong-agent
StrongOps = function (key, appName) {
  Npm.require('strong-agent').profile(key, appName);
};

// initialize the agent
StrongOps('myKeyHere', 'myAppNameHere');

CPU Heap, Dashboard , . Strong MQ, . , , MongoDB... . strong -cli@2.5.1 -agent@0.3.2 LTS Ubuntu 12.04.4.

Meteor/StrongOps, , https://github.com/dgtlife/dgtlife-strongops https://atmospherejs.com/package/dgtlife-strongops

+8

Source: https://habr.com/ru/post/1537624/


All Articles