Skip navigation
All Places > Developer > Blog > 2016 > September
2016
Sugar Developers now have a new tool for building upgrade safe mobile customizations that address most branding, theming, and mobile security requirements.

 

Introducing Sugar MACS

 

Introducing the Sugar Mobile Application Configurator Service (Sugar MACS)! This tool allows Sugar Developers building solutions for Sugar Enterprise customers to create and distribute custom-branded versions of the SugarCRM Mobile app.

 

[gallery ids="17444,17445" type="rectangular" link="none"]

 

Many of you have seen earlier previews of Sugar MACS at SugarCon and UnCon.

 

How it works

 

Sugar MACS provides a helpful wizard that makes it easy for developers or admins to configure the SugarCRM Mobile app.  Once configured, you can then download personalized versions of Mobile app (not a web-only facsimile) that replaces SugarCRM branding with their branding of choice. The downloaded mobile binaries can then be submitted to the Apple App Store or Google Play.

 

Apps can also be wrapped and deployed to end users using nearly any Mobile Device Management (MDM) solution such as AirWatch, MobileIron, XenMobile, or MaaS360. Even better, when SugarCRM releases new versions of the Mobile app then upgrading your custom app is a snap and perfectly upgrade safe. You need only log back into MACS to build and download binaries for your rebranded app using the latest SugarCRM Mobile version.

 

This is a level of flexibility that I do not think you will find in any other mobile CRM app.

 

Even better, there is no custom coding required and it is super easy to use!

 

https://www.youtube.com/watch?v=oTtQYtXwJwQ&feature=youtu.be

 

 

 

Learn more in the Mobile Developer Community

 

We’ve also launched a Mobile Developers space on the Sugar Community where you can collaborate with others and get questions answered on Sugar MACS as well as the upcoming Mobile SDK.

 

So visit the Mobile Developers space in the Sugar Community today to learn more about how to get started with this exciting new tool!

Post originally written by Vadzim Ramanenka.

 

Sugar Performance Engineer Vadzim Ramanenka shares some tips for profiling Sugar code using our newly launched SugarCRM XHProf Viewer open source project.

 

Profiling Sugar softly

Whenever you encounter that something is not working as fast as you would like, you need a way to look “under the hood” and understand what exactly is slowing things down. Sugar 7.7.0 added a built-in capability to collect detailed performance profiling data and store it in files. Recently, we released an open source SugarCRM XHProf Viewer project which can be used to visualize performance bottlenecks.

 



Read on to learn how to configure both Sugar and the Viewer in a few simple steps.

 

Prerequisites

You need to have a copy of Sugar on-site installed where you have file system access such as on your local machine. We rely on the xhprof php extension so you are required to have it installed on the version of PHP configured with Sugar as well.

 

Enabling XHProf logging in Sugar

First of all we have to create a directory which Sugar will use to store profiling information. I use /tmp/profile_files/sugar in this example but you can choose any location. Just make sure the target directory exists and that Apache has write permissions to it.After that, there are a few lines of configuration should be added to the config_override.php file to ask Sugar to start collecting profiling data. This is an example of a bare minimum configuration:
$sugar_config['xhprof_config']['enable'] = true;$sugar_config['xhprof_config']['log_to'] = '/tmp/profile_files/sugar';
By default, Sugar profiles only 10% (1 in 10) of the incoming requests. If you want to profile all requests then add this line to config_override.php:
$sugar_config['xhprof_config']['sample_rate'] = 1;
For additional configuration options please refer to the xhprof_config setting documentation in the Sugar Developer Guide.Now open Sugar and start clicking around. If you’ve done everything right files should start appearing in /tmp/profile_files/sugar.

 

Configuring SugarCRM XHProf Viewer

Download the latest release of the Viewer and extract it somewhere under your server's web root directory.By default, the Viewer looks for profiling data under /tmp/profile_files and subdirectories. If you want to change this then create a config_override.php file in the Viewer's root directory with the following content:
<?php$config['profile_files_dir'] = '<PROFILE FILES LOCATION>';
And replace <PROFILE FILES LOCATION>  with the directory that you specified in Sugar’s config_override.php.This is pretty much it. Have fun!

 

SugarCRM XHProf Viewer Screenshots

 

There are three different dimensions of information collected for every single request. Check out the screenshots below.